Function at 0x45a270
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0xc8
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xcc]
push ebp
push esi
push edi
xor edi, edi
mov esi, edx
cmp esi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edi
lea ebp, [esp + 0x40]
je 0x45a638
cmp dword [esi], 0xbab1e
jne 0x45a638
cmp dword [esi + 0xec], edi
je 0x45a2e1
lea eax, [edi + 8]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0044e502
add esp, 0xc8
ret
cmp dword [esp + 0xe0], edi
jge 0x45a307
pop edi
pop esi
mov eax, 0xa
pop ebp
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0044e502
add esp, 0xc8
ret
mov eax, dword [esi + 4]
cmp eax, edi
push ebx
mov dword [esp + 0x10], eax
je 0x45a36b
lea edx, [esp + 0x30]
call fcn.004591b0
xor edx, edx
mov edi, edi
mov ebx, 1
mov ecx, edx
shl ebx, cl
or esi, 0xffffffff
test eax, ebx
je 0x45a337
mov esi, dword [esp + edx*4 + 0x30]
add edi, 1
lea ecx, [edx + 0x10]
mov ebx, 1
shl ebx, cl
test eax, ebx
je 0x45a34c
mov esi, dword [esp + edx*4 + 0x30]
add edi, 1
cmp esi, 0xffffffff
je 0x45a359
add edx, 1
cmp edx, 5
jb 0x45a320
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x45a313
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
mov ebx, esi
call fcn.00459a40
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
jl 0x45a392
cmp eax, dword [esp + 0xe4]
jge 0x45a392
mov dword [esp + 0xe4], eax
cmp dword [esp + 0xec], 0
mov ebx, dword [esp + 0xe0]
lea eax, [edi + ebx]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], eax
je 0x45a3ba
cmp dword [esi + 0xdc], 0xffffffff
je 0x45a3ba
add eax, 1
cmp eax, 0xa
jbe 0x45a3fa
lea ecx, [eax*8]
push ecx
call dword [0x5d2038]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x45a3f2
lea eax, [ebp + 3]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0044e502
add esp, 0xc8
ret
mov dword [esp + 0x18], 1
xor esi, esi
cmp dword [esp + 0x1c], esi
je 0x45a49c
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 4]
test eax, eax
mov dword [esp + 0x10], eax
je 0x45a49c
lea esp, [esp]
lea edx, [esp + 0x30]
call fcn.004591b0
xor edx, edx
jmp 0x45a430
mov ebx, 1
mov ecx, edx
shl ebx, cl
or edi, 0xffffffff
test eax, ebx
je 0x45a456
mov ecx, dword [esp + edx*4 + 0x30]
mov dword [ebp + esi*8], ecx
mov word [ebp + esi*8 + 4], 1
mov edi, dword [esp + edx*4 + 0x30]
add esi, 1
lea ecx, [edx + 0x10]
mov ebx, 1
shl ebx, cl
test eax, ebx
je 0x45a47a
mov ecx, dword [esp + edx*4 + 0x30]
mov dword [ebp + esi*8], ecx
mov word [ebp + esi*8 + 4], 4
mov edi, dword [esp + edx*4 + 0x30]
add esi, 1
cmp edi, 0xffffffff
je 0x45a487
add edx, 1
cmp edx, 5
jb 0x45a430
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x45a420
mov ebx, dword [esp + 0xe0]
test ebx, ebx
jbe 0x45a4e2
mov ecx, dword [esp + 0x24]
lea eax, [ebp + esi*8 + 4]
add ecx, 4
mov edx, ebx
add esi, ebx
nop
mov edi, dword [ecx - 4]
mov dword [eax - 4], edi
mov word [eax], 0
test byte [ecx], 1
je 0x45a4c5
mov word [eax], 1
test byte [ecx], 2
je 0x45a4ce
or word [eax], 2
test byte [ecx], 4
je 0x45a4d7
or word [eax], 4
add eax, 8
add ecx, 8
sub edx, 1
jne 0x45a4b0
cmp dword [esp + 0xec], 0
je 0x45a509
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xdc]
cmp eax, 0xffffffff
je 0x45a509
mov dword [ebp + esi*8], eax
mov word [ebp + esi*8 + 4], 1
add esi, 1
test esi, esi
je 0x45a5c8
mov ecx, dword [esp + 0xe4]
push ecx
push esi
push ebp
call fcn.004829d0
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jle 0x45a5c8
test ebx, ebx
mov dword [esp + 0x20], eax
jbe 0x45a573
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
add edi, 6
lea edx, [ebp + edx*8 + 6]
movsx ecx, word [edx]
xor eax, eax
test cl, 1
je 0x45a555
mov eax, 1
test cl, 4
je 0x45a55d
or eax, 4
test cl, 2
je 0x45a565
or eax, 2
mov word [edi], ax
add edx, 8
add edi, 8
sub ebx, 1
jne 0x45a546
cmp dword [esp + 0xec], 0
je 0x45a5c8
mov eax, dword [esp + 0x14]
cmp dword [eax + 0xdc], 0xffffffff
je 0x45a5c8
mov ecx, dword [esp + 0x28]
test byte [ebp + ecx*8 + 6], 1
je 0x45a5c8
mov edi, dword [sym.imp.WS2_32.dll_recv]
jmp 0x45a5a0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xdc]
push 0
push 0x40
lea edx, [esp + 0x9c]
push edx
push ecx
call edi
test eax, eax
jg 0x45a5a0
mov edx, dword [esp + 0x10]
add edx, 0xffffffff
mov dword [esp + 0x20], edx
cmp dword [esp + 0x18], 0
je 0x45a5d9
push ebp
call dword [0x5d203c]
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x45a5e7
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
cmp dword [esp + 0xe8], 0
je 0x45a631
test esi, esi
jne 0x45a631
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x20], esi
call fcn.00459b70
add esp, 8
test eax, eax
jne 0x45a631
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45a631
mov ecx, dword [esp + 0xe4]
cmp eax, ecx
jg 0x45a626
test eax, eax
jge 0x45a628
mov eax, ecx
push eax
call fcn.004826c0
add esp, 4
xor eax, eax
jmp 0x45a3d9
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0044e502
add esp, 0xc8
ret