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

Disassembly:
sub esp, 0xbc
mov eax, dword [0x53b0f8]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xc4]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xd8]
lea esi, [esp + 0x70]
push edi
mov edi, dword [esp + 0xcc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], esi
mov byte [esp + 0xf], 0
test edi, edi
je 0x45bd5b
cmp dword [edi], 0xbab1e
jne 0x45bd5b
cmp byte [edi + 0xe2], 0
je 0x45b797
pop edi
pop esi
lea eax, [ebp + 8]
pop ebp
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00434475
add esp, 0xbc
ret
cmp dword [esp + 0xd8], ebp
jge 0x45b7bd
pop edi
pop esi
mov eax, 0xa
pop ebp
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00434475
add esp, 0xbc
ret
push ebx
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x45b828
lea eax, [esp + 0x64]
push eax
push ebx
call fcn.0045a050
add esp, 8
mov edi, eax
xor edx, edx
mov eax, 1
nop dword [eax]
or esi, 0xffffffff
test edi, eax
je 0x45b7f3
mov ecx, dword [esp + edx*4 + 0x64]
cmp ecx, 0xffffffff
jae 0x45b7f3
inc ebp
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x45b808
mov ecx, dword [esp + edx*4 + 0x64]
cmp ecx, 0xffffffff
jae 0x45b808
inc ebp
mov esi, ecx
cmp esi, 0xffffffff
je 0x45b815
inc edx
rol eax, 1
cmp edx, 5
jb 0x45b7e0
mov ebx, dword [ebx + 4]
mov dword [esp + 0x30], ebp
test ebx, ebx
jne 0x45b7c5
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x78]
lea eax, [esp + 0x14]
push eax
push edi
call fcn.0045b5f0
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
js 0x45b851
mov ecx, dword [esp + 0xdc]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0xdc], ecx
mov eax, dword [esp + 0xd8]
add eax, ebp
cmp byte [esp + 0xe8], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x45b8a9
lea eax, [ecx*8]
push eax
call dword [0x53b124]
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
jne 0x45b8a4
lea eax, [esi + 3]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00434475
add esp, 0xbc
ret
mov byte [esp + 0x13], 1
xor edx, edx
mov dword [esp + 0x18], edx
test ebp, ebp
je 0x45b9a9
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x45b9a9
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.0045a050
add esp, 8
mov dword [esp + 0x24], eax
xor esi, esi
nop word [eax + eax]
mov edx, 1
mov ecx, esi
shl edx, cl
or edi, 0xffffffff
xor ebx, ebx
test eax, edx
mov edx, dword [esp + 0x18]
je 0x45b91c
mov eax, dword [esp + esi*4 + 0x64]
cmp eax, 0xffffffff
jae 0x45b91c
mov edi, eax
mov ecx, 0x300
mov eax, dword [esp + 0x20]
mov ebx, 0x29
mov dword [eax + edx*8], edi
mov word [eax + edx*8 + 4], cx
inc edx
mov dword [esp + 0x18], edx
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [esp + 0x24], eax
je 0x45b961
mov eax, dword [esp + esi*4 + 0x64]
cmp eax, 0xffffffff
jae 0x45b961
push 0
push 0
mov edi, eax
or ebx, 0x32
push 0
push edi
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [esp + 0x18]
mov ecx, 0x10
mov eax, dword [esp + 0x20]
mov dword [eax + edx*8], edi
mov word [eax + edx*8 + 4], cx
inc edx
mov dword [esp + 0x18], edx
cmp edi, 0xffffffff
je 0x45b992
mov eax, dword [esp + 0x1c]
push ebx
push dword [eax + 0xdc]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x45ba6a
mov eax, dword [esp + 0x24]
inc esi
cmp esi, 5
jb 0x45b8e0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x45b8c6
mov esi, dword [esp + 0x20]
cmp dword [esp + 0xd8], 0
mov dword [esp + 0x14], 0
jbe 0x45ba88
mov edi, dword [esp + 0x2c]
lea esi, [esi + edx*8]
add esi, 4
mov ecx, 0x29
add edi, 4
movzx eax, word [edi]
xor ebx, ebx
test al, 1
cmovne ebx, ecx
test al, 2
je 0x45b9e2
or ebx, 4
test al, 4
je 0x45b9f8
push 0
push 0
push 0
push dword [edi - 4]
or ebx, 0x32
call dword [sym.imp.WS2_32.dll_send]
push ebx
mov ebx, dword [esp + 0x20]
push dword [ebx + 0xdc]
push dword [edi - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x45ba6a
mov eax, dword [edi - 4]
mov dword [esi - 4], eax
xor eax, eax
mov word [esi], ax
test byte [edi], 1
je 0x45ba28
mov eax, 0x300
mov word [esi], ax
test byte [edi], 2
je 0x45ba35
mov eax, 0x400
or word [esi], ax
test byte [edi], 4
je 0x45ba3e
or word [esi], 0x10
mov ecx, dword [esp + 0x14]
add esi, 8
mov edx, dword [esp + 0x18]
inc ecx
inc edx
mov dword [esp + 0x14], ecx
add edi, 8
mov dword [esp + 0x18], edx
cmp ecx, dword [esp + 0xd8]
mov ecx, 0x29
jb 0x45b9d1
jmp 0x45ba8c
cmp byte [esp + 0x13], 0
je 0x45ba7e
push dword [esp + 0x20]
call dword [0x53b128]
add esp, 4
mov eax, 4
jmp 0x45b88b
mov ebx, dword [esp + 0x1c]
test edx, edx
jne 0x45baa9
cmp byte [esp + 0xe8], dl
je 0x45bcc5
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x24], ebx
jmp 0x45bac5
mov esi, dword [esp + 0x20]
push 0
push 0
push edx
push esi
call fcn.00478b00
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x24], ebx
test ebx, ebx
jg 0x45bae5
mov ecx, dword [esp + 0x1c]
push 0
push dword [esp + 0xe0]
add ecx, 0xdc
push 0
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
jmp 0x45bae9
mov dword [esp + 0x28], ebx
xor edi, edi
cmp dword [esp + 0xd8], edi
jbe 0x45bc12
lea eax, [ebp*8 + 6]
add eax, esi
mov dword [esp + 0x14], eax
mov ebp, eax
nop word [eax + eax]
movsx eax, word [ebp]
xor esi, esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x30]
push esi
mov dword [esp + 0x40], esi
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x45bb8c
mov ecx, dword [esp + 0x38]
mov eax, esi
test cl, 0x29
mov ebx, ecx
setne al
movzx edx, ax
mov eax, edx
or eax, 4
and bl, 0x32
mov ebx, dword [esp + 0x38]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 4
mov ebx, dword [esp + 0x24]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x34], 0
movzx eax, cx
mov esi, eax
je 0x45bb8c
test ebx, ebx
jg 0x45bb8c
cmp dword [esp + 0x38], 0
je 0x45bb8c
inc dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0xdc]
mov eax, dword [esp + 0x34]
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test ebx, ebx
jle 0x45bbfd
mov edx, dword [esp + 0x14]
mov eax, esi
or eax, 1
and edx, 0x300
movzx ecx, ax
movzx eax, si
mov esi, dword [esp + 0x14]
cmove ecx, eax
movzx edx, cx
mov ebx, esi
mov eax, edx
or eax, 4
and bl, 0x10
mov ebx, dword [esp + 0x24]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and esi, 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
mov eax, dword [esp + 0x2c]
mov word [eax + edi*8 + 6], cx
inc edi
add ebp, 8
cmp edi, dword [esp + 0xd8]
jb 0x45bb10
mov ebp, dword [esp + 0x30]
test ebp, ebp
je 0x45bcb5
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x45bcb5
nop dword [eax]
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.0045a050
add esp, 8
mov ebp, eax
xor esi, esi
mov edi, 1
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebp, edx
je 0x45bca2
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0
push eax
push 0
push dword [esp + esi*4 + 0x6c]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x45bc84
cmp dword [esp + 0x34], eax
je 0x45bc84
test ebx, ebx
jg 0x45bc84
cmp dword [esp + 0x38], eax
je 0x45bc84
inc dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0xdc]
push dword [esp + esi*4 + 0x6c]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
rol edi, 1
cmp esi, 5
jb 0x45bc47
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x45bc30
mov ebx, dword [esp + 0x1c]
push dword [ebx + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x13], 0
je 0x45bcd9
push dword [esp + 0x20]
call dword [0x53b128]
add esp, 4
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x45bce7
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
cmp byte [esp + 0xe4], 0
je 0x45bd54
cmp dword [esp + 0x18], 0
jne 0x45bd54
cmp byte [esp + 0xe8], 0
jne 0x45bd54
cmp dword [ebx], 0xbab1e
mov dword [esp + 0x14], 0
jne 0x45bd54
cmp byte [ebx + 0xe2], 0
jne 0x45bd54
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0045b5f0
add esp, 8
test eax, eax
jne 0x45bd54
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45bd54
mov ecx, dword [esp + 0xdc]
cmp eax, ecx
jg 0x45bd47
test eax, eax
cmovs eax, ecx
mov ecx, eax
mov eax, ecx
cdq
push edx
push eax
call fcn.00478fc0
add esp, 8
xor eax, eax
jmp 0x45b88b
mov ecx, dword [esp + 0xc4]
mov eax, 1
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00434475
add esp, 0xbc
ret