Function at 0x433830
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x4c4024]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xcc], ecx
mov ecx, dword [ebp + 0x18]
lea esi, [ebp - 0x68]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xac], esi
mov byte [ebp - 0x95], 0
test eax, eax
je 0x433fdc
cmp dword [eax], 0xbab1e
jne 0x433fdc
cmp byte [eax + 0xeb], 0
je 0x4338ae
lea eax, [edi + 8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xc8], ebx
test ebx, ebx
jns 0x4338d2
pop ebx
pop edi
mov eax, 0xa
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 4]
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x43394b
nop
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00432700
add esp, 8
mov ebx, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test ebx, eax
je 0x433909
mov ecx, dword [ebp + edx*4 - 0x18]
cmp ecx, 0xffffffff
jae 0x433909
inc edi
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test ebx, ecx
je 0x43391c
cmp dword [ebp + edx*4 - 0x18], 0xffffffff
jae 0x43391c
inc edi
jmp 0x433921
cmp esi, 0xffffffff
je 0x433929
inc edx
rol eax, 1
cmp edx, 5
jb 0x4338f6
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xc4], edi
mov eax, dword [eax + 4]
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x4338e0
mov ebx, dword [ebp - 0xc8]
lea esi, [ebp - 0x68]
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0xa0]
call fcn.00433730
mov eax, dword [ebp - 0xb0]
add esp, 8
test eax, eax
js 0x433975
cmp eax, ebx
cmovl ebx, eax
mov dword [ebp - 0xc8], ebx
mov eax, dword [ebp + 0x10]
add eax, edi
cmp byte [ebp + 0x20], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x4339c1
lea eax, [ecx*8]
push eax
call dword [0x4c4040]
mov esi, eax
add esp, 4
mov dword [ebp - 0xac], esi
test esi, esi
jne 0x4339ba
pop ebx
pop edi
lea eax, [esi + 3]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x95], 1
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
xor ebx, ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xb8], eax
test edi, edi
je 0x433afb
mov ecx, dword [ebp - 0xa0]
mov eax, dword [ecx + 4]
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x433afb
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00432700
add esp, 8
mov dword [ebp - 0xa4], eax
xor esi, esi
nop dword [eax + eax]
mov edx, 1
mov ecx, esi
shl edx, cl
or edi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x433a52
mov eax, dword [ebp + esi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x433a52
mov ecx, dword [ebp - 0xac]
mov edi, eax
mov eax, dword [ebp - 0x9c]
mov edx, 0x300
mov ebx, 0x29
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0x9c], eax
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [ebp - 0xa4], eax
je 0x433aa1
mov eax, dword [ebp + esi*4 - 0x18]
cmp eax, 0xffffffff
jae 0x433aa1
push 0
push 0
mov edi, eax
or ebx, 0x32
push 0
push edi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0x9c]
mov edx, 0x10
mov ecx, dword [ebp - 0xac]
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0x9c], eax
jmp 0x433aa6
cmp edi, 0xffffffff
je 0x433ad2
mov eax, dword [ebp - 0xa0]
push ebx
push dword [eax + 0xe4]
push edi
call dword [ebp - 0xb8]
test eax, eax
jne 0x433d3c
mov eax, dword [ebp - 0xa4]
inc esi
cmp esi, 5
jb 0x433a10
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa8], eax
test eax, eax
jne 0x4339f3
mov edi, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0x9c]
mov esi, dword [ebp - 0xac]
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0xbc], 0
jbe 0x433c17
mov ecx, dword [ebp - 0xcc]
lea esi, [esi + ebx*8]
add esi, 4
add ecx, 4
mov dword [ebp - 0xa4], ecx
movzx edx, word [ecx]
mov al, dl
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov dword [ebp - 0x9c], ecx
or dword [ebp - 0x9c], 4
test dl, 2
mov eax, dword [ebp - 0x9c]
cmove eax, ecx
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xa4]
add eax, 0xfffffffc
mov dword [ebp - 0xa8], eax
test dl, 4
je 0x433b85
or dword [ebp - 0x9c], 0x32
push 0
push 0
push 0
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xa8]
jmp 0x433b8b
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa0]
push dword [ebp - 0x9c]
push dword [ecx + 0xe4]
push dword [eax]
call dword [ebp - 0xb8]
test eax, eax
jne 0x433d3c
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
mov eax, dword [eax]
mov dword [esi - 4], eax
xor eax, eax
mov word [esi], ax
test byte [ecx], 1
je 0x433bd0
mov eax, 0x300
mov word [esi], ax
test byte [ecx], 2
movzx edx, ax
je 0x433be3
or eax, 0x400
mov word [esi], ax
movzx edx, ax
test byte [ecx], 4
je 0x433bee
or edx, 0x10
mov word [esi], dx
mov eax, dword [ebp - 0xbc]
inc ebx
inc eax
mov dword [ebp - 0x9c], ebx
add ecx, 8
mov dword [ebp - 0xbc], eax
add esi, 8
mov dword [ebp - 0xa4], ecx
cmp eax, dword [ebp + 0x10]
jb 0x433b24
test ebx, ebx
jne 0x433d6b
cmp byte [ebp + 0x20], bl
je 0x433f4c
mov dword [ebp - 0xa4], ebx
mov eax, dword [ebp - 0xa0]
push 0
push dword [ebp - 0xc8]
add eax, 0xe4
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov edx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
xor eax, eax
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xb0], edx
cmp dword [ebp + 0x10], eax
jbe 0x433e66
mov ecx, dword [ebp - 0xac]
lea ecx, [ecx + edi*8]
mov edi, dword [ebp - 0xa4]
add ecx, 6
mov dword [ebp - 0xc0], ecx
movsx ebx, word [ecx]
xor esi, esi
mov ecx, dword [ebp - 0xcc]
shl eax, 3
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0x94], esi
mov eax, dword [eax + ecx]
lea ecx, [ebp - 0x94]
push ecx
push esi
push eax
mov dword [ebp - 0xbc], eax
call edx
test eax, eax
jne 0x433db7
mov ecx, dword [ebp - 0x94]
mov eax, esi
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
test bl, 0x32
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [ebp - 0xd0], 0
movzx eax, cx
mov esi, eax
je 0x433db1
test edi, edi
jne 0x433db1
test ebx, ebx
je 0x433db1
mov eax, dword [ebp - 0xa0]
inc dword [ebp - 0xb4]
push edi
push dword [eax + 0xe4]
push dword [ebp - 0xbc]
call dword [ebp - 0xb8]
movzx eax, si
jmp 0x433e1e
cmp byte [ebp - 0x95], 0
je 0x433d55
mov ecx, dword [ebp - 0xac]
push ecx
call dword [0x4c4044]
add esp, 4
pop ebx
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret
push 0
push 0
push ebx
push dword [ebp - 0xac]
call fcn.0044ed30
mov esi, eax
add esp, 0x10
mov dword [ebp - 0xa4], esi
test esi, esi
jns 0x433da0
pop ebx
pop edi
mov eax, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret
jle 0x433c2e
mov dword [ebp - 0xb4], esi
jmp 0x433c4c
mov ebx, dword [ebp - 0xa8]
mov eax, dword [ebp - 0xa0]
push 0
push dword [eax + 0xe4]
push dword [ebp - 0xbc]
call dword [ebp - 0xb8]
test edi, edi
jne 0x433dda
movzx eax, si
jmp 0x433e1e
mov eax, esi
or eax, 1
test ebx, 0x300
movzx ecx, ax
movzx eax, si
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
test bl, 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test dword [ebp - 0xa8], 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xcc]
mov word [ecx + edx + 6], ax
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xc0]
inc eax
mov edx, dword [ebp - 0xb0]
add ecx, 8
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xc0], ecx
cmp eax, dword [ebp + 0x10]
jb 0x433c81
mov edi, dword [ebp - 0xc4]
mov ebx, dword [ebp - 0x9c]
test edi, edi
je 0x433f3a
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc0], eax
test eax, eax
je 0x433f3a
mov ebx, dword [ebp - 0xa4]
nop dword [eax + eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00432700
add esp, 8
mov dword [ebp - 0xd4], eax
xor esi, esi
mov edi, 1
nop word [eax + eax]
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test eax, edx
je 0x433f1d
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push 0
push dword [ebp + esi*4 - 0x18]
call dword [ebp - 0xb0]
test eax, eax
jne 0x433ef7
cmp dword [ebp - 0xd0], eax
je 0x433ef7
test ebx, ebx
jne 0x433ef7
cmp dword [ebp - 0x94], ebx
je 0x433ef7
inc dword [ebp - 0xb4]
mov eax, dword [ebp - 0xa0]
push 0
push dword [eax + 0xe4]
push dword [ebp + esi*4 - 0x18]
call dword [ebp - 0xb8]
mov eax, dword [ebp - 0xd4]
inc esi
rol edi, 1
cmp esi, 5
jb 0x433eb0
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc0], eax
test eax, eax
jne 0x433e90
mov ebx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0xa0]
push dword [eax + 0xe4]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [ebp - 0x95], 0
je 0x433f64
push dword [ebp - 0xac]
call dword [0x4c4044]
add esp, 4
mov ecx, dword [ebp - 0xd0]
test ecx, ecx
je 0x433f76
mov eax, dword [ebp - 0xb4]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x433fc9
test ebx, ebx
jne 0x433fc9
cmp byte [ebp + 0x20], bl
jne 0x433fc9
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], ebx
push eax
push dword [ebp - 0xa0]
call fcn.004321b0
add esp, 8
test eax, eax
jne 0x433fc9
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x433fc9
mov ecx, dword [ebp - 0xc8]
cmp eax, ecx
jg 0x433fbc
test eax, eax
jns 0x433fbe
mov eax, ecx
cdq
push edx
push eax
call fcn.0044f170
add esp, 8
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0042ca6a
mov esp, ebp
pop ebp
ret