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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59dd40
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 8]
push edi
push 0x80
push 3
push edi
push 1
push closesocket
mov dword [esp + 0x70], edi
push eax
xor esi, esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4aea82
call fcn.004129d0
cmp eax, edi
jl 0x4aeaec
lea ecx, [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x4ae938
call fcn.004129d0
cmp eax, edi
jl 0x4ae942
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov esi, eax
mov dword [esp + 0x30], edx
push edi
lea eax, [esp + 0x1c]
push eax
push 8
lea ecx, [esp + 0x30]
push ecx
push ebx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
jne 0x4ae963
call fcn.004129d0
cmp dword [esp + 0x30], edi
ja 0x4ae972
cmp esi, 8
jbe 0x4aeadc
mov eax, dword [esp + 0x24]
cmp eax, 0x46534353
je 0x4ae988
cmp eax, 0x44534353
jne 0x4aeadc
cmp dword [esp + 0x28], 0x2000000
ja 0x4aeadc
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 0x80
push edi
push esi
lea esi, [esp + 0x3c]
mov byte [esp + 0x60], 1
call fcn.004083b0
push edi
push edi
lea edx, [esp + 0x1c]
push edx
xor edx, edx
call fcn.00433bd0
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x14]
call fcn.0041ae30
cmp ebx, edi
je 0x4ae9ee
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x1c], eax
call fcn.0057740a
mov ecx, eax
mov eax, dword [0x5fe654]
add esp, 4
cmp eax, edi
mov dword [esp + 0x1c], ecx
je 0x4aead3
mov edx, dword [esp + 0x38]
add esi, 0xfffffff8
push esi
add edx, 8
push edx
lea edx, [esp + 0x20]
push edx
push ecx
call eax
add esp, 0x10
cmp eax, edi
jne 0x4aead3
mov eax, dword [ebp + 0xc]
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4aea8d
call fcn.004129d0
mov ebx, eax
cmp ebx, edi
jge 0x4aea91
lea esi, [esp + 0x34]
call fcn.004baee0
lea esi, [esp + 0x14]
call fcn.00410620
mov eax, ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, eax
mov dword [esp + 0x14], ebx
jmp 0x4ae916
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00423680
lea esi, [esp + 0x14]
call fcn.00410620
lea esi, [esp + 0x34]
call fcn.004baee0
lea esi, [esp + 0x14]
call fcn.00410620
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [esp + 0x34]
call fcn.004baee0
cmp ebx, edi
je 0x4aeae7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret