Function at 0x403e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x6009e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x6025fc
push ecx
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xf8], edx
push eax
mov dword [ebp - 0xe4], 0
xor ebx, ebx
call fcn.0058bf3b
mov eax, dword [ebp - 0xe4]
add esp, 0xc
test eax, eax
je 0x4041d6
push ebx
push ebx
push eax
mov dword [ebp - 0xe8], ebx
call fcn.0058885d
add esp, 0xc
push dword [ebp - 0xe4]
push 2
push 1
push 0x6247a0
call fcn.0058d150
movzx eax, word [0x6247a0]
add esp, 0x10
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, 0x4d5a
cmp ax, cx
jne 0x4041c8
push ebx
push 0x3c
push dword [ebp - 0xe4]
call fcn.0058885d
add esp, 0xc
lea eax, [ebp - 0xe8]
push dword [ebp - 0xe4]
push 4
push 1
push eax
call fcn.0058d150
push ebx
push dword [ebp - 0xe8]
push dword [ebp - 0xe4]
call fcn.0058885d
mov eax, dword [ebp - 0xe8]
add esp, 0x1c
add eax, 0x58
mov dword [ebp - 0xf0], eax
push dword [ebp - 0xe4]
push 0x18
push 1
push 0x6247a0
call fcn.0058d150
add esp, 0x10
cmp dword [0x6247a0], 0x4550
jne 0x4041c8
movzx esi, word [0x6247b4]
lea eax, [esi + 0x24]
call fcn.005851e0
mov ecx, esp
mov edx, esi
push 1
push 4
call fcn.004ae4d0
mov esi, eax
lea ecx, [esi + 4]
mov dword [esi], ecx
push dword [ebp - 0xe4]
push dword [esi - 0x10]
push 1
push esi
call fcn.0058d150
movzx eax, word [esi]
add esp, 0x18
cmp eax, 0x10b
je 0x403fa5
cmp eax, 0x20b
jne 0x4041c8
mov eax, dword [esi + 0x90]
test eax, eax
cmovne ebx, eax
mov eax, dword [ebp - 0xe8]
add eax, 0xa8
jmp 0x403fbb
mov eax, dword [esi + 0x80]
test eax, eax
cmovne ebx, eax
mov eax, dword [ebp - 0xe8]
add eax, 0x98
mov dword [ebp - 0xf4], eax
test ebx, ebx
jne 0x404082
push 2
push 0xfffffffffffffff0
push dword [ebp - 0xe4]
mov dword [ebp - 0xec], ebx
call fcn.0058885d
add esp, 0xc
push dword [ebp - 0xe4]
push 0x10
push 1
push 0x6247a0
call fcn.0058d150
add esp, 0x10
lea esi, [ebx + 0xc]
mov ecx, 0x6247a0
mov edx, 0x6035ec
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x404072
add ecx, 4
add edx, 4
sub esi, 4
jae 0x404005
push 1
push 0xffffffffffffffec
push dword [ebp - 0xe4]
call fcn.0058885d
add esp, 0xc
lea eax, [ebp - 0xec]
push dword [ebp - 0xe4]
push 4
push 1
push eax
call fcn.0058d150
add esp, 0x10
push dword [ebp - 0xec]
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [ebp - 0xe4]
mov dword [ebp - 0xec], eax
call fcn.0058829a
mov ebx, eax
add esp, 4
mov eax, 0xfffffffc
sub eax, dword [ebp - 0xec]
add ebx, eax
jmp 0x404082
push dword [ebp - 0xe4]
call fcn.0058829a
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xe0]
push eax
call fcn.004cf3d0
add esp, 4
mov edi, ebx
push 0
push 0
push dword [ebp - 0xe4]
call fcn.0058885d
mov eax, dword [ebp - 0xf0]
add esp, 0xc
test eax, eax
je 0x40414a
push dword [ebp - 0xe4]
add eax, 4
push eax
push 1
push 0x6247a0
call fcn.0058d150
mov esi, eax
mov eax, dword [ebp - 0xf0]
push esi
push 0x6247a0
mov dword [eax + 0x6247a0], 0
lea eax, [ebp - 0xe0]
push eax
call fcn.004cf480
mov eax, dword [ebp - 0xf4]
add esp, 0x1c
sub edi, esi
test ebx, ebx
cmove edi, ebx
sub eax, dword [ebp - 0xf0]
push dword [ebp - 0xe4]
add eax, 4
push eax
push 1
push 0x6247a0
call fcn.0058d150
mov esi, eax
lea eax, [ebp - 0xe0]
push esi
push 0x6247a0
push eax
mov dword [esi + 0x624798], 0
mov dword [esi + 0x62479c], 0
call fcn.004cf480
add esp, 0x1c
test ebx, ebx
je 0x40414a
sub edi, esi
mov ecx, 0x1000
nop
test ebx, ebx
jne 0x40415b
mov eax, 0x1000
jmp 0x404166
cmp edi, 0x1000
mov eax, edi
cmova eax, ecx
push dword [ebp - 0xe4]
push eax
push 1
push 0x6247a0
call fcn.0058d150
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4041a4
push esi
lea eax, [ebp - 0xe0]
push 0x6247a0
push eax
call fcn.004cf480
add esp, 0xc
mov ecx, 0x1000
test ebx, ebx
je 0x404154
sub edi, esi
jne 0x404150
lea eax, [ebp - 0xe0]
push eax
push dword [ebp - 0xf8]
call fcn.004cf3c0
push dword [ebp - 0xe4]
call fcn.00588467
add esp, 0xc
xor eax, eax
jmp 0x4041db
push dword [ebp - 0xe4]
call fcn.00588467
add esp, 4
mov eax, 1
lea esp, [ebp - 0x108]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00584a28
mov esp, ebp
pop ebp
ret