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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53b3db
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10044
call fcn.0050c350
mov eax, dword [0x5ac020]
xor eax, esp
mov dword [esp + 0x10040], eax
push ebx
push esi
push edi
mov eax, dword [0x5ac020]
xor eax, esp
push eax
lea eax, [esp + 0x10058]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x1fc]
lea esi, [edi + 0x108]
test eax, eax
je 0x414cae
cmp dword [eax + 0xb0], 0
jbe 0x414cae
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10060], ebx
cmp dword [0x5be2b0], ebx
je 0x414a31
mov eax, dword [edi + 0x78]
mov ecx, 0x5be2ac
push dword [eax + 0x240]
call fcn.004a6f60
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x414a31
lea eax, [esp + 0x4c]
push 0x10000
push eax
call fcn.0051b090
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x54]
add esp, 8
call fcn.0040d860
test eax, eax
je 0x414a7f
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x414a25
add eax, 0xa0
cmp dword [eax + 0x14], 8
jb 0x414a27
mov eax, dword [eax]
lea ecx, [esp + 0x4c]
push ecx
jmp 0x414aba
xor eax, eax
lea ecx, [esp + 0x4c]
push ecx
jmp 0x414aba
mov edx, 1
xor ecx, ecx
call fcn.0040d140
test eax, eax
je 0x414ad1
mov ecx, dword [edi + 0x78]
mov ecx, dword [ecx + 0x240]
call fcn.0040dce0
test eax, eax
je 0x414ad1
lea eax, [esp + 0x4c]
push 0x10000
push eax
call fcn.0051b090
mov ecx, dword [edi + 0x78]
lea edx, [esp + 0x54]
add esp, 8
mov ecx, dword [ecx + 0x240]
call fcn.0040e140
test eax, eax
je 0x414aae
call fcn.00477390
push eax
call fcn.00477390
push eax
push 0xefffffff
push 1
push 1
push str.0049
push 3
push dword [0x5bdd04]
call fcn.004a3b30
add esp, 0x20
jmp 0x414c95
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.004c7080
push eax
lea ecx, [esp + 0x2c]
call fcn.004b8d90
test eax, eax
je 0x414bce
jmp 0x414b81
mov eax, dword [edi + 0x78]
push 0
push 0
push 3
push 0
push 1
push Ordinal_1
push dword [eax + 0x240]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x414c37
cmp eax, 0xffffffff
je 0x414c37
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x10000
lea ecx, [esp + 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414bd4
cmp dword [esp + 0x18], 0x10000
jne 0x414bd4
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [esp + 0x14]
test eax, eax
je 0x414bd8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.004c7080
push eax
lea ecx, [esp + 0x2c]
call fcn.004b8d90
test eax, eax
je 0x414bce
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x3c]
jne 0x414bc6
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x40]
jne 0x414bc6
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x414b9a
add eax, 0xa0
cmp dword [eax + 0x14], 8
jb 0x414b9c
mov eax, dword [eax]
jmp 0x414b9c
xor eax, eax
mov ecx, dword [edi + 0x78]
push eax
call fcn.00415650
mov ecx, dword [edi + 0x78]
mov eax, dword [ecx + 0xd8]
mov dword [eax + 0x28], 1
mov eax, dword [ecx]
call dword [eax + 0xcc]
mov ebx, dword [esp + 0x24]
jmp 0x414c95
push 0x72
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esp + 0x24]
jmp 0x414bde
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov ecx, edi
push 0xefffffff
push 1
push 1
push str.0036
push 4
call dword [eax + 0x3c]
push eax
call fcn.004a3b30
add esp, 0x18
test byte [esi + 0x60], 1
je 0x414c95
mov eax, dword [esi + 0x64]
test al, 0x40
jne 0x414c95
shr eax, 7
and eax, 1
je 0x414c95
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x414c95
push 0
push esi
call fcn.004c78d0
test eax, eax
je 0x414c95
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
jmp 0x414c95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 0x3c]
push 0
push 0
mov edi, eax
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
push 0
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x414c95
push eax
push 0xefffffff
push 1
push 1
push str.0029
push 4
push edi
call fcn.004a3b30
add esp, 0x1c
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x10060], 0xffffffff
test ebx, ebx
je 0x414cf7
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
jmp 0x414cf7
mov eax, dword [edi]
push 0xefffffff
push 1
push 1
push str.0007
push 3
call dword [eax + 0x3c]
push eax
call fcn.004a3b30
add esp, 0x18
test byte [esi + 0x60], 1
je 0x414cf7
mov eax, dword [esi + 0x64]
test al, 0x40
jne 0x414cf7
test al, al
jns 0x414cf7
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x414cf7
push 0
push esi
call fcn.004c78d0
test eax, eax
je 0x414cf7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov ecx, dword [esp + 0x10058]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10040]
xor ecx, esp
call fcn.004ffcef
mov esp, ebp
pop ebp
ret