Function at 0x48a380
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push ebx
mov eax, dword [esp + 0x68]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x48a3c2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x3c]
push 0xe
push edx
push ebx
call esi
test eax, eax
jne 0x48a3f3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x60
ret 0x10
cmp dword [esp + 0x18], 0xe
jne 0x48a893
cmp word [esp + 0x34], 0x4d42
jne 0x48a893
lea eax, [esp + 0x18]
push 0
mov edi, 0x28
push eax
lea ecx, [esp + 0x4c]
push edi
push ecx
push ebx
call esi
test eax, eax
jne 0x48a43a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x60
ret 0x10
cmp dword [esp + 0x18], edi
jne 0x48a87d
cmp dword [esp + 0x44], edi
jne 0x48a87d
mov eax, dword [esp + 0x48]
test eax, eax
je 0x48a87d
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x48a87d
cmp word [esp + 0x50], 1
jne 0x48a87d
cmp word [esp + 0x52], 0x18
jne 0x48a87d
mov edx, dword [esp + 0x54]
test edx, edx
jne 0x48a87d
mov edx, dword [esp + 0x64]
test edx, edx
jne 0x48a87d
mov edx, dword [esp + 0x68]
test edx, edx
jne 0x48a87d
lea edx, [eax + eax*2]
mov byte [esp + 0x6c], 8
mov byte [esp + 0x6d], 8
mov byte [esp + 0x6e], 8
lea eax, [edx*8 + 0x1f]
mov byte [esp + 0x6f], 0
cdq
and edx, 0x1f
add eax, edx
mov edi, eax
sar edi, 5
shl edi, 2
mov ebp, edi
imul ebp, ecx
push ebp
call sub.mfc42.dll_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x48a4f8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0x60
ret 0x10
lea eax, [esp + 0x18]
push 0
push eax
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48a52b
push esi
call sub.mfc42.dll_operatordelete
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x60
ret 0x10
cmp dword [esp + 0x18], ebp
je 0x48a550
push esi
call sub.mfc42.dll_operatordelete
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x60
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
lea ebx, [ecx - 1]
lea eax, [eax + eax*2 - 3]
mov ecx, ebx
mov dword [esp + 0x20], eax
imul ecx, edi
lea edx, [ecx + eax]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x28], edx
cmp eax, 0xc
jbe 0x48a59a
lea edx, [eax - 0xc]
mov eax, 0xaaaaaaab
mul edx
shr edx, 3
mov dword [esp + 0x1c], edx
mov ebp, dword [esp + 0x78]
xor eax, eax
cmp ebp, eax
je 0x48a5b4
cmp dword [esp + 0x7c], 0xc
jb 0x48a5b4
mov dword [ebp], eax
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
dec eax
mov dword [esp + 0x24], eax
mov al, byte [esi]
cmp al, byte [edx + esi]
jne 0x48a757
mov al, byte [esi + 1]
cmp al, byte [edx + esi + 1]
jne 0x48a757
mov al, byte [esi + 2]
cmp al, byte [edx + esi + 2]
mov byte [esp + 0x74], al
jne 0x48a757
mov al, byte [esi]
cmp al, byte [ecx + esi]
mov byte [esp + 0x78], al
jne 0x48a757
mov al, byte [esi + 1]
cmp al, byte [ecx + esi + 1]
mov byte [esp + 0x13], al
jne 0x48a757
mov al, byte [esp + 0x74]
cmp al, byte [ecx + esi + 2]
jne 0x48a757
mov eax, dword [esp + 0x28]
mov cl, byte [esp + 0x78]
cmp cl, byte [eax + esi]
jne 0x48a757
mov cl, byte [esp + 0x13]
cmp cl, byte [eax + esi + 1]
jne 0x48a757
mov cl, byte [esp + 0x74]
cmp cl, byte [eax + esi + 2]
jne 0x48a757
mov eax, dword [esp + 0x48]
cmp eax, 2
mov eax, dword [esp + 0x4c]
jg 0x48a65b
cmp eax, 2
jle 0x48a75b
test eax, eax
jle 0x48a833
mov ecx, edi
mov dword [esp + 0x78], eax
imul ecx, eax
neg edi
sub ebx, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x74], ebx
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x74]
add ecx, edi
inc eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x30], ecx
lea eax, [ecx + edx]
mov edi, ecx
cmp ecx, eax
mov dword [esp + 0x2c], eax
jg 0x48a743
mov ebx, eax
sub ebx, ecx
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx*2 + 3]
lea ecx, [ebp + edx*4]
mov dl, byte [esi + edi]
cmp dl, byte [esi]
jne 0x48a6c5
mov dl, byte [esi + edi + 1]
cmp dl, byte [esi + 1]
jne 0x48a6c5
mov dl, byte [esi + edi + 2]
cmp dl, byte [esi + 2]
je 0x48a72d
test ebp, ebp
je 0x48a71d
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp eax, edx
jae 0x48a71d
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x24]
sub eax, edx
mov edx, dword [esp + 0x74]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, byte [esi + edi + 2]
mov byte [ecx + 8], al
mov dl, byte [esi + edi + 1]
mov byte [ecx + 9], dl
mov al, byte [esi + edi]
mov byte [ecx + 0xa], al
mov eax, dword [ecx]
cmp eax, dword [ebp + 4]
jle 0x48a710
mov dword [ebp + 4], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
cmp eax, edx
jle 0x48a71d
mov dword [ebp + 8], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
inc edx
add ecx, 0xc
mov dword [esp + 0x14], edx
add edi, 3
sub ebx, 3
cmp edi, eax
jle 0x48a6ac
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x78]
dec eax
mov dword [esp + 0x78], eax
jne 0x48a678
jmp 0x48a833
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x48a833
mov ecx, edi
mov dword [esp + 0x78], eax
imul ecx, eax
neg edi
sub ebx, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x74]
add ecx, ebx
inc edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x28], ecx
lea ebx, [ecx + edx]
mov edi, ecx
cmp ecx, ebx
mov dword [esp + 0x2c], ebx
jg 0x48a824
mov eax, dword [esp + 0x14]
sub ebx, ecx
lea ecx, [eax + eax*2 + 3]
lea ecx, [ebp + ecx*4]
test ebp, ebp
je 0x48a802
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp edx, eax
jae 0x48a802
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x24]
sub eax, edx
mov edx, dword [esp + 0x74]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, byte [edi + esi + 2]
mov byte [ecx + 8], al
mov dl, byte [edi + esi + 1]
mov byte [ecx + 9], dl
mov al, byte [edi + esi]
mov byte [ecx + 0xa], al
mov eax, dword [ecx]
cmp eax, dword [ebp + 4]
jle 0x48a7f5
mov dword [ebp + 4], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
cmp eax, edx
jle 0x48a802
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x14]
add edi, 3
inc eax
add ecx, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
sub ebx, 3
cmp edi, eax
jle 0x48a7aa
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x78]
dec eax
mov dword [esp + 0x78], eax
jne 0x48a778
test ebp, ebp
je 0x48a854
cmp dword [esp + 0x7c], 0xc
jb 0x48a854
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
ja 0x48a84f
mov dword [ebp], eax
jmp 0x48a858
mov dword [ebp], ecx
jmp 0x48a858
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x80]
lea ecx, [eax + eax*2 + 3]
shl ecx, 2
push esi
mov dword [edx], ecx
call sub.mfc42.dll_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x60
ret 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x60
ret 0x10