Function at 0x420f60
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1011c
call fcn.00492d40
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, reloc.NETAPI32.dll_NetApiBufferFree
je 0x421396
mov dword [ebp - 0x18], 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 2]
push eax
call fcn.004928c4
add esp, 4
mov esi, eax
test esi, esi
jne 0x420ff0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 2]
push eax
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
lea ecx, [ebp - 0x18]
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
je 0x420fd7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov word [ebp - 0x27], ax
mov byte [ebp - 0x25], al
mov dword [ebp - 0xe8], 0x498a48
push 0x120
push str.6A7A05DA_5C5F_4420_B769_C26F8C2E8F6C
lea ecx, [ebp - 0xe8]
call section..text
xor ebx, ebx
test dword [ebp - 0x18], 0xfffffff0
jbe 0x4210af
mov edi, esi
jmp 0x421060
mov edx, dword [edi]
mov dword [ebp - 0x44], edx
mov eax, dword [edi + 4]
mov dword [ebp - 0x40], eax
mov ecx, dword [edi + 8]
mov dword [ebp - 0x3c], ecx
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0xe8]
call fcn.00401cb0
mov edx, dword [ebp - 0x34]
mov dword [edi], edx
mov eax, dword [ebp - 0x30]
mov dword [edi + 4], eax
mov ecx, dword [ebp - 0x2c]
mov dword [edi + 8], ecx
mov edx, dword [ebp - 0x28]
mov dword [edi + 0xc], edx
inc ebx
add edi, 0x10
mov eax, dword [ebp - 0x18]
shr eax, 4
cmp ebx, eax
jb 0x421060
push 0x498b64
lea ecx, [ebp + 8]
call fcn.00405690
push esi
push 0x4976f0
lea ecx, [ebp + 8]
push ecx
call fcn.00407630
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 0x10
xor esi, esi
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], esi
mov eax, str.__TNConfig_
je 0x4210e9
mov eax, str.__BrowserConfig_
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405690
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp + 8]
cmp ebx, esi
je 0x42135e
cmp dword [edi - 0xc], esi
jl 0x42135e
push ebx
push edi
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 8
cmp eax, esi
je 0x42135e
sub eax, edi
sar eax, 1
mov edx, eax
cmp edx, reloc.NETAPI32.dll_NetApiBufferFree
je 0x42135e
mov eax, ebx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x421130
sub eax, edi
sar eax, 1
add eax, edx
lea ecx, [ebp - 0x14]
lea edx, [ebp + 8]
call fcn.00405d70
push eax
lea ecx, [ebp + 8]
call fcn.00406470
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421174
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], esi
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], esi
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], esi
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], esi
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], esi
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], esi
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xec], esi
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
mov eax, ecx
neg eax
and eax, 3
lea edx, reloc.NETAPI32.dll_NetApiBufferFree
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edx
lea eax, [ebp - 0xf0]
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
mov ebx, dword [ebp + 8]
call fcn.00402690
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
push ebx
lea edi, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.00407670
mov dword [ebp - 4], reloc.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
test eax, eax
je 0x4212ad
mov esi, dword [eax + 0x18]
test esi, esi
je 0x4212ad
mov eax, dword [esi]
test eax, eax
jne 0x42121b
mov eax, 0x4afaa8
mov edi, dword [esi + 4]
test edi, edi
jne 0x421227
mov edi, 0x4afaa8
test eax, eax
je 0x42129f
test edi, edi
je 0x42129f
mov ebx, eax
call fcn.00402620
push eax
lea ecx, [ebp - 0x20]
call fcn.00405690
mov ebx, edi
call fcn.00402620
push eax
lea ecx, [ebp - 0x24]
call fcn.00405690
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
mov edx, dword [edx + 4]
call edx
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421280
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42129f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi + 0x2c]
test esi, esi
jne 0x421210
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea esi, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.004066c0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4212e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421300
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx - 0x10]
lea edx, [eax + 0xc]
or ecx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42137a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, reloc.NETAPI32.dll_NetApiBufferFree
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret