Function at 0x4054f0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x41ccc7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
mov eax, dword [0x425e64]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
push 0x425998
lea ecx, [esp + 0x14]
mov dword [esp + 0x454], 0
call fcn.0041579d
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x458]
mov ebp, dword [sym.imp.WS2_32.dll_send]
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
push esi
call ebp
test eax, eax
jg 0x40556b
lea ecx, [esp + 0x10]
mov dword [esp + 0x450], 0xffffffff
call fcn.00415660
xor eax, eax
jmp 0x4057c4
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
push eax
lea ecx, [esp + 0x48]
push 5
push ecx
push esi
call ebx
test eax, eax
jg 0x4055a8
lea ecx, [esp + 0x10]
mov dword [esp + 0x450], 0xffffffff
call fcn.00415660
xor eax, eax
jmp 0x4057c4
lea edx, [esp + 0x44]
push edx
call fcn.00406eda
push eax
call fcn.00416148
add esp, 8
lea ecx, [esp + 0x10]
push 0x425998
call fcn.0041579d
mov eax, dword [esp + 0x10]
push 0
mov ecx, dword [eax - 8]
push ecx
push eax
push esi
call ebp
test eax, eax
jg 0x4055f6
lea ecx, [esp + 0x10]
mov dword [esp + 0x450], 0xffffffff
call fcn.00415660
xor eax, eax
jmp 0x4057c4
push 0x47e528
lea ecx, [esp + 0x14]
call fcn.0041579d
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x44]
push 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x48]
push 0x400
push eax
push esi
call ebx
cmp eax, 0x400
jne 0x40565a
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x14]
call fcn.00415861
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x44]
push 0
rep stosd dword es:[edi], eax
lea edx, [esp + 0x48]
push 0x400
push edx
push esi
stosb byte es:[edi], al
call ebx
cmp eax, 0x400
je 0x405628
lea eax, [esp + 0x44]
lea ecx, [esp + 0x10]
push eax
call fcn.00415861
mov ecx, dword [esp + 0x10]
push ecx
push str._r_nSetup:__s_r_n
call fcn.00406dd1
add esp, 8
lea ecx, [esp + 0x10]
push 0x425738
call fcn.00414b95
push fcn.00415660
push 0x403c50
push 0xa
lea edx, [esp + 0x28]
push 4
push edx
mov esi, eax
call fcn.004070e3
xor ebx, ebx
cmp esi, 0xffffffff
mov byte [esp + 0x450], 1
je 0x405737
lea edi, [esp + 0x1c]
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00414b1d
push eax
mov ecx, edi
mov byte [esp + 0x454], 2
call fcn.0041574d
lea ecx, [esp + 0x14]
mov byte [esp + 0x450], 1
call fcn.00415660
add esi, 2
lea ecx, [esp + 0x18]
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.00414a64
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x454], 3
call fcn.0041574d
lea ecx, [esp + 0x18]
mov byte [esp + 0x450], 1
call fcn.00415660
push 0x425738
lea ecx, [esp + 0x14]
inc ebx
add edi, 4
call fcn.00414b95
mov esi, eax
cmp esi, 0xffffffff
jne 0x4056b9
cmp ebx, 1
jb 0x405789
xor ebp, ebp
mov dword [esp + 0x14], ebx
mov edi, dword [esp + ebp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x429aa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x429aa8]
push eax
push 0x4259b8
call fcn.00406dd1
mov eax, dword [esp + 0x1c]
add esp, 8
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x405742
push fcn.00415660
push 0xa
lea ecx, [esp + 0x24]
inc ebx
push 4
push ecx
mov dword [0x429aa0], ebx
mov byte [esp + 0x460], 0
call fcn.00407005
lea ecx, [esp + 0x10]
mov dword [esp + 0x450], 0xffffffff
call fcn.00415660
mov eax, 1
mov ecx, dword [esp + 0x448]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x444
ret