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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1007d820]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xd0], eax
xor edi, edi
mov dword [ebp - 0xb4], ebx
lea eax, [ebp - 0x54]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb8], 0xa
mov dword [ebp - 0xb0], edi
mov byte [ebp - 0xa1], 0
test ebx, ebx
je 0x100441e6
cmp dword [ebx], 0xbab1e
jne 0x100441e6
cmp byte [ebx + 0x10f], 0
je 0x10043bcc
lea eax, [edi + 8]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
jns 0x10043bea
pop esi
pop edi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xa8]
push eax
push ebx
call fcn.10043a40
mov eax, dword [ebp - 0xa8]
add esp, 8
test eax, eax
js 0x10043c0c
cmp eax, esi
cmovl esi, eax
mov dword [ebp + 0x14], esi
push 0x50
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.10064710
mov eax, dword [ebx + 4]
xorps xmm0, xmm0
add esp, 0xc
mov dword [ebp - 0xc0], eax
movdqu xmmword [ebp - 0x74], xmm0
movdqu xmmword [ebp - 0x64], xmm0
test eax, eax
je 0x10043d83
lea ebx, [ebx]
lea ecx, [ebp - 0x74]
push ecx
push eax
call fcn.10042670
xor esi, esi
add esp, 8
cmp dword [ebp - 0x60], esi
jbe 0x10043d66
mov al, byte [ebp + esi - 0x5c]
xor edi, edi
xor ebx, ebx
test al, 1
je 0x10043c6c
lea ebx, [edi + 0x29]
mov edi, 0x300
test al, 2
je 0x10043cc5
mov eax, dword [ebp + esi*4 - 0x74]
lea ecx, [ebp - 0xa8]
push ecx
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
push ecx
push 0x1008
push 0xffff
push eax
or ebx, 0x32
mov dword [ebp - 0xa8], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10043cc2
cmp dword [ebp - 0xc8], 1
jne 0x10043cc2
push eax
push eax
push eax
push dword [ebp - 0xcc]
call dword [sym.imp.WS2_32.dll_send]
or edi, 0x10
test di, di
je 0x10043d39
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xac]
test ecx, ecx
je 0x10043ceb
mov eax, dword [ebp + esi*4 - 0x74]
cmp eax, dword [edx + ecx*8 - 8]
jne 0x10043ceb
or word [edx + ecx*8 - 4], di
jmp 0x10043d39
cmp ecx, dword [ebp - 0xb8]
jb 0x10043d26
lea eax, [ebp - 0xa1]
push eax
push 0x64
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.10044880
add esp, 0x10
test eax, eax
jne 0x10043eba
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp + esi*4 - 0x74]
mov dword [edx + ecx*8], eax
mov word [edx + ecx*8 + 4], di
inc ecx
mov dword [ebp - 0xb0], ecx
test ebx, ebx
je 0x10043d5c
push ebx
mov ebx, dword [ebp - 0xb4]
push dword [ebx + 0x100]
push dword [ebp + esi*4 - 0x74]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x10043ed0
inc esi
cmp esi, dword [ebp - 0x60]
jb 0x10043c58
mov eax, dword [ebp - 0xc0]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc0], eax
test eax, eax
jne 0x10043c40
mov edi, dword [ebp - 0xb0]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xc0], 0
test esi, esi
je 0x10043eff
mov ebx, dword [ebp - 0xc4]
add ebx, 4
movzx eax, word [ebx]
xor esi, esi
test al, 1
mov ecx, 0x29
cmovne esi, ecx
test al, 2
je 0x10043dbd
or esi, 4
test al, 4
je 0x10043e12
mov eax, dword [ebx - 4]
lea ecx, [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0xb0], eax
push ecx
push 0x1008
push 0xffff
push eax
or esi, 0x32
mov dword [ebp - 0xcc], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10043e12
cmp dword [ebp - 0xc8], 1
jne 0x10043e12
push eax
push eax
push eax
push dword [ebp - 0xb0]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xb4]
push esi
push dword [eax + 0x100]
push dword [ebx - 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x10043ed0
cmp edi, dword [ebp - 0xb8]
jb 0x10043e5b
lea eax, [ebp - 0xa1]
push eax
push 0x64
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.10044880
add esp, 0x10
test eax, eax
jne 0x10043eba
mov edx, dword [ebp - 0xac]
mov eax, dword [ebx - 4]
mov dword [edx + edi*8], eax
xor eax, eax
mov word [edx + edi*8 + 4], ax
test byte [ebx], 1
je 0x10043e7d
mov eax, 0x300
mov word [edx + edi*8 + 4], ax
test byte [ebx], 2
je 0x10043e8c
mov eax, 0x400
or word [edx + edi*8 + 4], ax
test byte [ebx], 4
je 0x10043e97
or word [edx + edi*8 + 4], 0x10
mov ecx, dword [ebp - 0xc0]
inc edi
mov esi, dword [ebp + 0x10]
inc ecx
add ebx, 8
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xc0], ecx
cmp ecx, esi
jae 0x10043f05
jmp 0x10043da7
pop esi
pop edi
mov eax, 3
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xa1], 0
je 0x10043ee9
mov ecx, dword [ebp - 0xac]
push ecx
call dword [0x1007c2dc]
add esp, 4
pop esi
pop edi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xac]
test edi, edi
jne 0x100441a5
mov bl, byte [ebp + 0x20]
test bl, bl
je 0x10044105
mov dword [ebp - 0xb8], edi
mov eax, dword [ebp - 0xb4]
push 0
push dword [ebp + 0x14]
add eax, 0x100
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test esi, esi
je 0x10044035
mov eax, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xc4]
mov edi, dword [ebp - 0xb8]
add ebx, 6
lea eax, [eax*8 + 6]
add eax, dword [ebp - 0xac]
mov dword [ebp - 0xc4], eax
lea esp, [esp]
movsx eax, word [eax]
lea ecx, [ebp - 0xa0]
push ecx
xor esi, esi
mov dword [ebp - 0xc8], eax
mov eax, dword [ebx - 6]
push esi
push eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xa0], esi
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x10043fd2
mov eax, dword [ebp - 0xa0]
mov ecx, 1
test al, 0x29
cmovne esi, ecx
test al, 0x32
je 0x10043fb4
or esi, 4
test al, 4
je 0x10043fbb
or esi, 2
cmp dword [ebp - 0xd0], 0
je 0x10043fd2
test edi, edi
jne 0x10043fd2
test eax, eax
je 0x10043fd2
inc dword [ebp - 0xbc]
mov eax, dword [ebp - 0xb4]
push 0
push dword [eax + 0x100]
push dword [ebp - 0xcc]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test edi, edi
je 0x10044011
mov eax, dword [ebp - 0xc8]
test eax, 0x300
je 0x10044000
or esi, 1
test al, 0x10
je 0x10044007
or esi, 4
test eax, 0x400
je 0x10044011
or esi, 2
mov eax, dword [ebp - 0xc4]
mov word [ebx], si
add eax, 8
add ebx, 8
mov dword [ebp - 0xc4], eax
dec dword [ebp + 0x10]
jne 0x10043f70
mov edi, dword [ebp - 0xb0]
cmp dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xb4]
je 0x100440f6
mov ebx, dword [eax + 4]
mov dword [ebp - 0xa8], ebx
test ebx, ebx
je 0x100440f6
mov edi, dword [ebp - 0xb8]
nop
lea eax, [ebp - 0x74]
push eax
push ebx
call fcn.10042670
xor esi, esi
add esp, 8
cmp dword [ebp - 0x60], esi
jbe 0x100440d9
mov ebx, dword [ebp - 0xb4]
lea ebx, [ebx]
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0
push eax
push 0
push dword [ebp + esi*4 - 0x74]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x100440bb
cmp dword [ebp - 0xd0], eax
je 0x100440bb
test edi, edi
jne 0x100440bb
cmp dword [ebp - 0xa0], edi
je 0x100440bb
inc dword [ebp - 0xbc]
push 0
push dword [ebx + 0x100]
push dword [ebp + esi*4 - 0x74]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
inc esi
cmp esi, dword [ebp - 0x60]
jb 0x10044080
mov ebx, dword [ebp - 0xa8]
mov ebx, dword [ebx + 0x10]
mov dword [ebp - 0xa8], ebx
test ebx, ebx
jne 0x10044060
mov edi, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xb4]
push dword [eax + 0x100]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov bl, byte [ebp + 0x20]
cmp byte [ebp - 0xa1], 0
je 0x1004411d
push dword [ebp - 0xac]
call dword [0x1007c2dc]
add esp, 4
mov ecx, dword [ebp - 0xd0]
test ecx, ecx
je 0x1004412f
mov eax, dword [ebp - 0xbc]
mov dword [ecx], eax
cmp byte [ebp + 0x1c], 0
je 0x10044192
test edi, edi
jne 0x10044192
test bl, bl
jne 0x10044192
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa8], edi
cmp dword [eax], 0xbab1e
jne 0x10044192
cmp byte [eax + 0x10f], bl
jne 0x10044192
lea ecx, [ebp - 0xa8]
push ecx
push eax
call fcn.10043a40
add esp, 8
test eax, eax
jne 0x10044192
mov eax, dword [ebp - 0xa8]
test eax, eax
je 0x10044192
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
jg 0x10044185
test eax, eax
cmovs eax, ecx
mov ecx, eax
mov eax, ecx
cdq
push edx
push eax
call fcn.1004a950
add esp, 8
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
push edx
call fcn.1004a510
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0xb8], ebx
test ebx, ebx
jns 0x100441d5
pop esi
pop edi
mov eax, 0xc
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100631a7
mov esp, ebp
pop ebp
ret
jle 0x10043f1e
mov dword [ebp - 0xbc], ebx
jmp 0x10043f39
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.100631a7
mov esp, ebp
pop ebp
ret