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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e5fc
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x604e14]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x140], ecx
push 0x104
mov eax, dword [ebp - 0x140]
add eax, 0x38c
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov edx, dword [ebp - 0x140]
add edx, 0x38c
push edx
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.0045eee0
add esp, 0xc
push 0x1e
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00557394
add esp, 0x24
push 0x593584
lea eax, [ebp - 0x50]
push eax
call fcn.00557301
add esp, 8
test eax, eax
jne 0x40c385
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045cd30
add esp, 8
mov eax, 1
jmp 0x40c5d9
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp + 8]
push edx
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xffffffff
jne 0x40c3b3
xor eax, eax
jmp 0x40c5d9
push 0
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x60], eax
mov ecx, dword [0x606abc]
shl ecx, 0x14
mov dword [ebp - 0x68], ecx
cmp dword [0x606ab8], 1
jne 0x40c441
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp - 0x68]
jbe 0x40c441
mov eax, dword [0x606abc]
push eax
mov ecx, dword [0x606abc]
push ecx
push str.This_file_is_bigger_than__dMBs._Would_you_like_to_load_in_memory_just_the_first__dMBs_
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 3
push 0
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x140]
call fcn.0052c0ff
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 6
jne 0x40c428
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x60], ecx
jmp 0x40c441
cmp dword [ebp - 0x6c], 2
jne 0x40c441
mov edx, dword [ebp - 0x5c]
push edx
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x40c5d9
mov eax, dword [ebp - 0x60]
push eax
call fcn.0045ee00
add esp, 4
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c497
push 0x8000
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00460e10
add esp, 4
xor eax, eax
jmp 0x40c5d9
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00460e10
add esp, 4
push 0x5c
call fcn.0052601f
add esp, 4
mov dword [ebp - 0x13c], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x13c], 0
je 0x40c4d6
mov ecx, dword [ebp - 0x13c]
call fcn.00461040
mov dword [ebp - 0x144], eax
jmp 0x40c4e0
mov dword [ebp - 0x144], 0
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x64]
call fcn.00461100
test eax, eax
jne 0x40c52c
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x60]
mov dword [edx + 8], eax
push 1
mov ecx, dword [ebp - 0x64]
call fcn.0045bd00
push 0x606a38
call fcn.0045b860
add esp, 4
mov dword [ebp - 0x54], eax
push 0x108164
push 0
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.00556110
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 0x104
mov eax, dword [ebp - 0x54]
push eax
call fcn.0045eee0
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x64]
mov dword [ecx + 0x208], edx
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x628], ecx
mov ecx, dword [ebp - 0x140]
call fcn.0040e680
test eax, eax
je 0x40c5c8
cmp dword [0x606aa8], 0
je 0x40c5c8
mov edx, dword [ebp - 0x140]
cmp dword [edx + 0x1894], 0
jne 0x40c5c8
push 0x606a38
call fcn.0045bb40
add esp, 4
cmp eax, 1
jbe 0x40c5c8
push 0
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x140]
call fcn.0040c600
jmp 0x40c5d9
push 1
mov ecx, dword [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x140]
call fcn.0040c600
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00555ac5
mov esp, ebp
pop ebp
ret 8