Function at 0x403135
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x6b0d44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x6b2cfc
push ecx
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xf8], edx
xor edi, edi
push eax
mov dword [ebp - 0xe4], edi
call fcn.005cad70
add esp, 0xc
cmp dword [ebp - 0xe4], edi
jne 0x40317e
xor eax, eax
inc eax
jmp 0x4034c7
push edi
push edi
push dword [ebp - 0xe4]
mov dword [ebp - 0xf0], edi
call fcn.005ad120
push dword [ebp - 0xe4]
xor ebx, ebx
mov esi, 0x76c080
push 2
inc ebx
push ebx
push esi
call fcn.005d0dc0
movzx eax, word [0x76c080]
add esp, 0x1c
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x4d5a
cmp ax, cx
jne 0x4034b7
push edi
push 0x3c
push dword [ebp - 0xe4]
call fcn.005ad120
push dword [ebp - 0xe4]
lea eax, [ebp - 0xf0]
push 4
push ebx
push eax
call fcn.005d0dc0
push edi
push dword [ebp - 0xf0]
push dword [ebp - 0xe4]
call fcn.005ad120
push dword [ebp - 0xe4]
mov eax, dword [ebp - 0xf0]
push 0x18
add eax, 0x58
push ebx
push esi
mov dword [ebp - 0xf4], eax
call fcn.005d0dc0
add esp, 0x38
cmp dword [0x76c080], 0x4550
jne 0x4034b7
movzx esi, word [0x76c094]
lea eax, [esi + 0x24]
call fcn.0059c6e0
mov ecx, esp
mov edx, esi
push ebx
push 4
call fcn.0046bf0b
mov esi, eax
lea ecx, [esi + 4]
mov dword [esi], ecx
push dword [ebp - 0xe4]
push dword [esi - 0x10]
push ebx
push esi
call fcn.005d0dc0
movzx eax, word [esi]
add esp, 0x18
cmp eax, 0x10b
je 0x403291
cmp eax, 0x20b
jne 0x4034b7
mov eax, dword [esi + 0x90]
mov ebx, edi
test eax, eax
cmovne ebx, eax
mov eax, dword [ebp - 0xf0]
add eax, 0xa8
jmp 0x4032a9
mov eax, dword [esi + 0x80]
mov ebx, edi
test eax, eax
cmovne ebx, eax
mov eax, dword [ebp - 0xf0]
add eax, 0x98
mov dword [ebp - 0xec], eax
test ebx, ebx
jne 0x40335c
push 2
push 0xfffffffffffffff0
push dword [ebp - 0xe4]
mov dword [ebp - 0xe8], edi
call fcn.005ad120
push dword [ebp - 0xe4]
mov ebx, 0x76c080
push 0x10
push 1
push ebx
call fcn.005d0dc0
add esp, 0x1c
mov edx, 0x6b499c
mov ecx, edi
mov eax, dword [ebx + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x40334e
inc ecx
cmp ecx, 4
jne 0x4032eb
push 1
push 0xffffffffffffffec
push dword [ebp - 0xe4]
call fcn.005ad120
push dword [ebp - 0xe4]
lea eax, [ebp - 0xe8]
push 4
push 1
push eax
call fcn.005d0dc0
add esp, 0x1c
push dword [ebp - 0xe8]
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [ebp - 0xe4]
mov dword [ebp - 0xe8], eax
call fcn.005abb70
pop ecx
mov ebx, eax
push 0xfffffffffffffffc
pop eax
sub eax, dword [ebp - 0xe8]
add ebx, eax
jmp 0x40335c
push dword [ebp - 0xe4]
call fcn.005abb70
pop ecx
mov ebx, eax
lea eax, [ebp - 0xe0]
push eax
call fcn.0048aeb0
push edi
push edi
push dword [ebp - 0xe4]
mov esi, ebx
call fcn.005ad120
mov eax, dword [ebp - 0xf4]
add esp, 0x10
test eax, eax
je 0x403422
push dword [ebp - 0xe4]
add eax, 4
push eax
push 1
push 0x76c080
call fcn.005d0dc0
mov esi, eax
mov eax, dword [ebp - 0xf4]
push esi
push 0x76c080
mov dword [eax + 0x76c080], edi
lea eax, [ebp - 0xe0]
push eax
call fcn.0048af60
push dword [ebp - 0xe4]
mov eax, ebx
sub eax, esi
test ebx, ebx
mov esi, eax
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xec]
cmove esi, ebx
sub eax, dword [ebp - 0xf4]
add eax, 4
push eax
push 1
push 0x76c080
call fcn.005d0dc0
push eax
mov dword [ebp - 0xec], eax
push 0x76c080
mov dword [eax + 0x76c078], edi
mov dword [eax + 0x76c07c], edi
lea eax, [ebp - 0xe0]
push eax
call fcn.0048af60
add esp, 0x38
test ebx, ebx
je 0x403422
sub esi, dword [ebp - 0xec]
push dword [ebp - 0xe4]
mov ecx, 0x1000
mov eax, esi
cmp esi, ecx
cmova eax, ecx
test ebx, ebx
cmove eax, ecx
push eax
push 1
push 0x76c080
call fcn.005d0dc0
add esp, 0x10
mov dword [ebp - 0xec], eax
test eax, eax
je 0x4034a1
mov edi, eax
push edi
lea eax, [ebp - 0xe0]
push 0x76c080
push eax
call fcn.0048af60
add esp, 0xc
test ebx, ebx
je 0x403472
sub esi, edi
je 0x40349f
push dword [ebp - 0xe4]
mov ecx, 0x1000
mov eax, esi
cmp esi, ecx
cmova eax, ecx
test ebx, ebx
cmove eax, ecx
push eax
push 1
push 0x76c080
call fcn.005d0dc0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x403455
xor edi, edi
lea eax, [ebp - 0xe0]
push eax
push dword [ebp - 0xf8]
call fcn.0048aea0
pop ecx
pop ecx
jmp 0x4034b9
mov edi, ebx
push dword [ebp - 0xe4]
call fcn.005ac520
pop ecx
mov eax, edi
lea esp, [ebp - 0x108]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059b3f0
mov esp, ebp
pop ebp
ret