Function at 0x7027e020
Capabilities:
Check if file exists
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x70315e41
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x7034b250]
xor eax, esp
mov dword [esp + 0x4c8], eax
push ebx
push esi
push edi
mov eax, dword [0x7034b250]
xor eax, esp
push eax
lea eax, [esp + 0x4e0]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 0x800c0004
cmp esi, edi
je 0x7027e6eb
cmp ecx, edi
je 0x7027e6eb
cmp edx, edi
je 0x7027e6eb
push 0x208
mov dword [eax + 0x18], edi
lea eax, [esp + 0x2d0]
push edi
push eax
call fcn.702e95e0
add esp, 0xc
push 9
push str.wdfile:__
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x7027e554
push 4
call fcn.702e1f8d
add esp, 4
cmp eax, edi
je 0x7027e0e3
lea ecx, [esp + 0x24]
mov dword [eax], ecx
jmp 0x7027e0e5
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x4e8], 1
mov ebx, 7
xor edx, edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], edi
mov word [esp + 0x54], dx
lea edx, [esi + 0x12]
lea ecx, [esp + 0x24]
mov byte [esp + 0x4e8], 2
call fcn.70216de0
test eax, eax
jne 0x7027e168
cmp dword [esp + 0x68], 8
jb 0x7027e140
mov eax, dword [esp + 0x54]
push eax
call fcn.702e1c24
add esp, 4
xor ecx, ecx
mov word [esp + 0x54], cx
mov dword [esp + 0x68], ebx
lea esi, [esp + 0x24]
mov dword [esp + 0x64], edi
mov dword [esp + 0x4e8], 0xffffffff
call fcn.7027e960
jmp 0x7027e554
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x7027e2de
push 0xffffffffffffffff
push edi
mov eax, esi
lea ecx, [esp + 0x58]
call fcn.7020f220
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x7027e1a8
lea eax, [esp + 0x54]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push str.richtab
push eax
call edi
test eax, eax
jne 0x7027e4b0
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x7027e2fe
push 0xffffffffffffffff
lea eax, [esi + 0x1c]
push 0
lea ecx, [esp + 0x58]
call fcn.7020f220
cmp dword [esp + 0x68], 8
mov eax, dword [esp + 0x54]
jae 0x7027e203
lea eax, [esp + 0x54]
push 0x7032ffb8
push eax
call edi
test eax, eax
jne 0x7027e4b0
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x7027e2fe
push 0xffffffffffffffff
lea eax, [esi + 0x38]
push 0
lea ecx, [esp + 0x58]
call fcn.7020f220
push 0x208
lea eax, [esp + 0xc8]
push 0
push eax
call fcn.702e95e0
add esp, 0xc
push str.richtablogo_
push 0x70359d48
lea ecx, [esp + 0xcc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [esp + 0x68], 8
mov ebx, dword [esp + 0x54]
jae 0x7027e287
lea ebx, [esp + 0x54]
lea edi, [esp + 0x14]
mov ecx, 0x104
lea edx, [esp + 0xc4]
call fcn.7021b690
test eax, eax
jl 0x7027e334
mov edx, dword [esp + 0x14]
mov ecx, 0x104
sub ecx, edx
lea eax, [esp + edx*2 + 0xc4]
je 0x7027e32c
mov edi, ebx
lea esi, [ecx + edx + 0x7ffffefb]
sub edi, eax
test esi, esi
je 0x7027e328
movzx edx, word [edi + eax]
test dx, dx
je 0x7027e328
mov word [eax], dx
dec ecx
add eax, 2
dec esi
test ecx, ecx
jne 0x7027e2c3
jmp 0x7027e32c
cmp dword [esp + 0x68], 8
jb 0x7027e2f2
mov ecx, dword [esp + 0x54]
push ecx
call fcn.702e1c24
add esp, 4
xor edx, edx
mov word [esp + 0x54], dx
jmp 0x7027e147
cmp dword [esp + 0x68], 8
jb 0x7027e312
mov ecx, dword [esp + 0x54]
push ecx
call fcn.702e1c24
add esp, 4
xor edi, edi
xor edx, edx
mov dword [esp + 0x68], 7
mov word [esp + 0x54], dx
jmp 0x7027e14b
test ecx, ecx
jne 0x7027e32f
sub eax, 2
xor edx, edx
mov word [eax], dx
lea edi, [esp + 0x14]
mov ecx, 0x104
lea edx, [esp + 0xc4]
call fcn.7021b690
test eax, eax
jl 0x7027e397
mov edx, dword [esp + 0x14]
mov ecx, 0x104
sub ecx, edx
lea eax, [esp + edx*2 + 0xc4]
je 0x7027e38f
mov edi, str..png
lea esi, [ecx + edx + 0x7ffffefb]
sub edi, eax
nop
test esi, esi
je 0x7027e38b
movzx edx, word [edi + eax]
test dx, dx
je 0x7027e38b
mov word [eax], dx
dec ecx
add eax, 2
dec esi
test ecx, ecx
jne 0x7027e370
jmp 0x7027e38f
test ecx, ecx
jne 0x7027e392
sub eax, 2
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 0xc4]
push edx
call ebx
test eax, eax
je 0x7027e3ce
lea eax, [esp + 0xc4]
push eax
mov eax, SysReAllocString
mov ecx, 0x104
lea edx, [esp + 0x2d0]
call fcn.7020f5f0
jmp 0x7027e4b0
push 0x208
lea ecx, [esp + 0xc8]
push 0
push ecx
call fcn.702e95e0
add esp, 0xc
push str.richtab_snap_
push 0x70359d48
lea edx, [esp + 0xcc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
cmp dword [esp + 0x68], 8
mov esi, dword [esp + 0x54]
jae 0x7027e40c
lea esi, [esp + 0x54]
lea edi, [esp + 0x14]
mov ecx, 0x104
lea edx, [esp + 0xc4]
call fcn.7021b690
test eax, eax
jl 0x7027e442
mov eax, dword [esp + 0x14]
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax*2 + 0xc4]
push esi
mov eax, SysReAllocString
call fcn.7020f5f0
lea edi, [esp + 0x14]
mov ecx, 0x104
lea edx, [esp + 0xc4]
call fcn.7021b690
test eax, eax
jl 0x7027e47c
mov eax, dword [esp + 0x14]
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax*2 + 0xc4]
push str..dat
mov eax, SysReAllocString
call fcn.7020f5f0
lea eax, [esp + 0xc4]
push eax
call ebx
test eax, eax
je 0x7027e4b0
lea ecx, [esp + 0xc4]
push ecx
mov eax, SysReAllocString
mov ecx, 0x104
lea edx, [esp + 0x2d0]
call fcn.7020f5f0
mov dword [esp + 0x10], 1
cmp dword [esp + 0x68], 8
jb 0x7027e4c4
mov edx, dword [esp + 0x54]
push edx
call fcn.702e1c24
add esp, 4
xor eax, eax
xor ecx, ecx
mov word [esp + 0x54], ax
mov dword [esp + 0x4e8], 0xffffffff
mov eax, dword [esp + 0x30]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ecx
cmp eax, ecx
je 0x7027e539
mov edi, dword [esp + 0x34]
cmp eax, edi
je 0x7027e52e
lea esi, [eax + 0x18]
xor ebx, ebx
lea esp, [esp]
cmp dword [esi], 8
jb 0x7027e511
mov eax, dword [esi - 0x14]
push eax
call fcn.702e1c24
add esp, 4
xor ecx, ecx
mov dword [esi], 7
mov dword [esi - 4], ebx
mov word [esi - 0x14], cx
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x7027e500
mov eax, dword [esp + 0x30]
push eax
call fcn.702e1c24
add esp, 4
xor ecx, ecx
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
call fcn.702e1c24
add esp, 4
xor edi, edi
cmp word [esp + 0x2cc], di
je 0x7027e6e5
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [esp + 0x2e4]
push ecx
xor ebx, ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x504], 3
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x7027e6d9
call fcn.7020df50
cmp eax, edi
jne 0x7027e6e5
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x18]
add esi, 0x14
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x7027e5d7
call fcn.7020df50
cmp eax, edi
jl 0x7027e6e5
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4e8], 0xffffffff
mov ebx, eax
mov dword [esp + 0x18], edx
cmp dword [esp + 0x10], edi
je 0x7027e66e
mov edx, dword [esi]
push edi
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x50]
push ecx
push edx
mov dword [esp + 0x58], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x7027e625
call fcn.7020df50
cmp eax, edi
jne 0x7027e6e5
cmp dword [esp + 0x10], edi
je 0x7027e6e5
cmp dword [esp + 0x44], 1
ja 0x7027e6e5
push esi
lea eax, [esp + 0x14]
mov ecx, 4
lea edx, [esp + 0x18]
mov dword [esp + 0x14], edi
call fcn.7027e930
test eax, eax
jne 0x7027e6e5
cmp dword [esp + 0x10], edi
je 0x7027e6e5
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [ecx + 0x18], eax
push 0x54
lea edx, [esp + 0x70]
push edi
push edx
mov dword [esp + 0x48], edi
call fcn.702e95e0
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [esp + 0x6c]
push edx
lea edx, [esp + 0x40]
push edx
push eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x78], 0x54
call eax
test byte [esp + 0x3c], 0x40
mov esi, dword [esp + 0x40]
je 0x7027e6ba
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
push str.Local_File
push 0xe
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
push ebx
push ebx
push 0xd
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
push edi
push 0xc8
push edi
push esi
call eax
xor eax, eax
jmp 0x7027e6f0
mov edx, dword [esp + 0x20]
mov dword [edx + 0x14], eax
jmp 0x7027e5a7
mov eax, dword [esp + 0x4c]
jmp 0x7027e6f0
mov eax, 0x800c0004
mov ecx, dword [esp + 0x4e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c8]
xor ecx, esp
call fcn.702e1c2f
mov esp, ebp
pop ebp
ret 0x18