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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd690
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x633ef8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push 0x6097b3
mov dword [ebp - 0x1c], 0
call fcn.004160f0
push 0
push 0
push 3
push 0
push 0
mov byte [ebp - 4], 1
push SysReAllocStringLen
push dword [ebp + 0xc]
mov dword [ebp - 0x18], 0x4c7a6f6d
mov dword [ebp - 0x14], 0x30347a
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x424114
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.004163d0
mov byte [ebp - 4], 0
or esi, edi
mov edx, dword [ebp - 0x1c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4240ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x424251
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x424251
push 0
push edi
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x24], eax
call fcn.004544f0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20]
push 0
push eax
push dword [ebp - 0x24]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
jne 0x424153
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4241f9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0xc
jb 0x4241f9
push 8
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.005908c8
add esp, 0xc
test eax, eax
jne 0x4241f9
xor ecx, ecx
mov edi, 8
xor edx, edx
movzx eax, byte [edi + esi]
inc edi
shl eax, cl
add ecx, 8
add edx, eax
cmp edi, 0xc
jb 0x424183
xor ecx, ecx
mov dword [ebp - 0x28], edx
add edx, 1
setb cl
neg ecx
or ecx, edx
push ecx
call fcn.0059d17c
add esp, 4
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4241f9
mov eax, dword [ebp - 0x24]
lea ecx, [edi + esi]
push dword [ebp - 0x28]
sub eax, edi
mov edi, dword [ebp - 0x2c]
push eax
mov edx, edi
call fcn.004366a0
add esp, 8
push edi
test eax, eax
jns 0x4241db
call fcn.0059c099
add esp, 4
jmp 0x4241f9
mov eax, dword [ebp - 0x28]
push 0x609340
mov byte [edi + eax], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00415ec0
push edi
call fcn.0059c099
add esp, 0x10
test esi, esi
je 0x424206
push esi
call fcn.004544f9
add esp, 4
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.004163d0
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x424232
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x424251
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005892bc
mov esp, ebp
pop ebp
ret 8