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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4826e9
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x4a20b0]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
push edi
mov eax, dword [0x4a20b0]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov edi, ecx
push 0x4a4140
lea eax, [esp + 0x28]
mov dword [esp + 0x20], edi
call fcn.0042f543
xor ebx, ebx
mov dword [esp + 0x2f0], ebx
mov eax, dword [0x4a41c8]
cmp word [eax], bx
jne 0x45e5e2
push edi
lea eax, [esp + 0x28]
push eax
call fcn.0042f7bf
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45e590
or dword [esp + 0x2f0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0042f563
jmp 0x45e6a7
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jne 0x45e5a7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45e57a
push edi
mov dword [esp + 0x1c], ebx
call fcn.00473cf3
pop ecx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], edi
je 0x45e690
push dword [esp + 0x10]
call fcn.00474c1c
pop ecx
jmp 0x45e57a
push eax
lea eax, [esp + 0x28]
call fcn.0042f574
cmp byte [0x4a377f], bl
je 0x45e5fc
mov esi, dword [0x4a76cc]
jmp 0x45e608
push dword [esp + 0x24]
call fcn.00449513
pop ecx
mov esi, eax
cmp esi, ebx
je 0x45e57a
lea eax, [esp + 0xac]
push eax
push esi
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.00449569
pop ecx
pop ecx
test eax, eax
jne 0x45e57a
mov edi, dword [esp + 0x2d8]
cmp edi, ebx
je 0x45e57a
push edi
call fcn.00473cf3
pop ecx
push edi
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, esi
call fcn.0044963b
add esp, 0xc
cmp eax, ebx
je 0x45e683
cmp eax, 0x600
je 0x45e683
push dword [esp + 0x10]
call fcn.00474c1c
pop ecx
cmp byte [0x4a377f], bl
jne 0x45e57a
call fcn.0044966d
jmp 0x45e57a
cmp byte [0x4a377f], bl
jne 0x45e690
call fcn.0044966d
or dword [esp + 0x2f0], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0042f563
cmp dword [esp + 0x10], ebx
jne 0x45e722
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45e71e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, ebx
jne 0x45e6df
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45e71e
push edi
mov dword [esp + 0x18], ebx
call fcn.00473cf3
pop ecx
push ebx
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], edi
je 0x45e718
push dword [esp + 0x10]
call fcn.00474c1c
pop ecx
mov dword [esp + 0x10], ebx
cmp dword [esp + 0x10], ebx
jne 0x45e722
xor eax, eax
jmp 0x45e73e
push edi
push dword [esp + 0x14]
push dword [esp + 0x28]
call fcn.0045e764
push dword [esp + 0x10]
mov esi, eax
call fcn.00474c1c
pop ecx
mov eax, esi
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.004678b3
mov esp, ebp
pop ebp
ret 4