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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x10084044]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0x6c]
push edi
xor ebx, ebx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov edi, 0x3e8
mov dword [ebp - 0xb0], edi
mov byte [ebp - 0x99], bl
test esi, esi
je 0x100426ec
cmp dword [esi], 0xbab1e
jne 0x100426ec
cmp byte [esi + 0xe2], bl
je 0x1004238a
lea eax, [ebx + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x10042404
nop word [eax + eax]
lea edx, [ebp - 0x1c]
mov ecx, eax
call fcn.10042710
mov edi, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test edi, eax
je 0x100423c6
mov ecx, dword [ebp + edx*4 - 0x1c]
cmp ecx, 0xffffffff
jae 0x100423c6
inc ebx
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x100423d9
cmp dword [ebp + edx*4 - 0x1c], 0xffffffff
jae 0x100423d9
inc ebx
jmp 0x100423de
cmp esi, 0xffffffff
je 0x100423e6
inc edx
rol eax, 1
cmp edx, 5
jb 0x100423b3
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax + 4]
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x100423a0
mov esi, dword [ebp - 0xa4]
mov edi, 0x3e8
lea edx, [ebp - 0xb4]
mov ecx, esi
call fcn.10040c30
mov eax, dword [ebp - 0xb4]
test eax, eax
js 0x10042429
cmp eax, 0x3e8
cmovl edi, eax
mov dword [ebp - 0xb0], edi
lea eax, [ebx + 1]
cmp eax, 0xa
jbe 0x10042465
shl eax, 3
push eax
call dword [0x100849b0]
mov edi, eax
add esp, 4
mov dword [ebp - 0xa8], edi
test edi, edi
jne 0x1004245e
lea eax, [edi + 3]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x99], 1
xor edx, edx
mov dword [ebp - 0xa0], edx
test ebx, ebx
je 0x10042604
mov eax, dword [esi + 4]
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x10042604
lea edx, [ebp - 0x1c]
mov ecx, eax
call fcn.10042710
mov dword [ebp - 0xb8], eax
xor esi, esi
nop dword [eax + eax]
xor ecx, ecx
mov edx, 1
mov dword [ebp - 0xac], ecx
or edi, 0xffffffff
mov ecx, esi
shl edx, cl
test eax, edx
je 0x100424f5
mov eax, dword [ebp + esi*4 - 0x1c]
cmp eax, 0xffffffff
jae 0x100424ed
mov ecx, dword [ebp - 0xa8]
mov edi, eax
mov eax, dword [ebp - 0xa0]
mov edx, 0x300
mov dword [ebp - 0xac], 0x29
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xac]
jmp 0x100424f7
xor edx, edx
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [ebp - 0xb8], eax
je 0x1004254c
mov eax, dword [ebp + esi*4 - 0x1c]
cmp eax, 0xffffffff
jae 0x1004254c
push 0
push 0
mov edi, eax
or edx, 0x32
push 0
push edi
mov dword [ebp - 0xac], edx
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xa0]
mov edx, 0x10
mov ecx, dword [ebp - 0xa8]
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [ebp - 0xa0], eax
jmp 0x10042551
cmp edi, 0xffffffff
je 0x1004257f
mov eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0xac]
push ecx
push dword [eax + 0xdc]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x100425d6
mov eax, dword [ebp - 0xb8]
inc esi
cmp esi, 5
jb 0x100424a0
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax + 4]
mov dword [ebp - 0xb4], eax
test eax, eax
jne 0x10042486
mov edx, dword [ebp - 0xa0]
test edx, edx
je 0x10042604
mov ecx, dword [ebp - 0xa8]
push eax
push eax
call fcn.1005c230
mov esi, eax
add esp, 8
test esi, esi
jle 0x10042606
mov edi, dword [ebp - 0xa4]
test esi, esi
jns 0x10042627
mov eax, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x99], 0
je 0x100425ee
push dword [ebp - 0xa8]
call dword [0x100849b8]
add esp, 4
mov eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
xor esi, esi
mov edi, dword [ebp - 0xa4]
push 0
push dword [ebp - 0xb0]
push 0
lea eax, [edi + 0xdc]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
jmp 0x100425bc
test ebx, ebx
je 0x100426af
mov ebx, dword [edi + 4]
mov dword [ebp - 0xb0], ebx
test ebx, ebx
je 0x100426af
nop dword [eax]
lea edx, [ebp - 0x1c]
mov ecx, ebx
call fcn.10042710
mov ebx, eax
xor esi, esi
mov edi, 1
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebx, edx
je 0x1004269c
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0
push eax
push 0
push dword [ebp + esi*4 - 0x1c]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [ebp - 0xa4]
push 0
push dword [eax + 0xdc]
push dword [ebp + esi*4 - 0x1c]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
rol edi, 1
cmp esi, 5
jb 0x10042653
mov ebx, dword [ebp - 0xb0]
mov ebx, dword [ebx + 4]
mov dword [ebp - 0xb0], ebx
test ebx, ebx
jne 0x10042640
mov eax, dword [ebp - 0xa4]
push dword [eax + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [ebp - 0x99], 0
je 0x100426d9
push dword [ebp - 0xa8]
call dword [0x100849b8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013577
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013577
mov esp, ebp
pop ebp
ret