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

Disassembly:
sub esp, 0xd4
mov eax, dword [0x1006a744]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xdc]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xf0]
lea esi, [esp + 0x88]
push edi
mov edi, dword [esp + 0xe4]
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], esi
mov byte [esp + 0xf], 0
test edi, edi
je 0x1002d93a
cmp dword [edi], 0xbab1e
jne 0x1002d93a
cmp byte [edi + 0xeb], 0
je 0x1002d2da
pop edi
pop esi
lea eax, [ebp + 8]
pop ebp
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10056613
add esp, 0xd4
ret
mov eax, dword [esp + 0xf0]
mov dword [esp + 0x38], eax
test eax, eax
jns 0x1002d306
pop edi
pop esi
mov eax, 0xa
pop ebp
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10056613
add esp, 0xd4
ret
push ebx
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x1002d370
nop
lea eax, [esp + 0x7c]
push eax
push ebx
call fcn.1002ba70
add esp, 8
mov edi, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test edi, eax
je 0x1002d33a
mov ecx, dword [esp + edx*4 + 0x7c]
cmp ecx, 0xffffffff
jae 0x1002d33a
inc ebp
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x1002d34d
cmp dword [esp + edx*4 + 0x7c], 0xffffffff
jae 0x1002d34d
inc ebp
jmp 0x1002d352
cmp esi, 0xffffffff
je 0x1002d35a
inc edx
rol eax, 1
cmp edx, 5
jb 0x1002d327
mov ebx, dword [ebx + 4]
mov dword [esp + 0x44], ebp
test ebx, ebx
jne 0x1002d310
mov edi, dword [esp + 0x38]
lea esi, [esp + 0x90]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.1002d150
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
js 0x1002d393
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0xf0]
add eax, ebp
cmp byte [esp + 0x100], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x1002d3eb
lea eax, [ecx*8]
push eax
call dword [0x100691ac]
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
jne 0x1002d3e6
lea eax, [esi + 3]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10056613
add esp, 0xd4
ret
mov byte [esp + 0x13], 1
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x34], eax
test ebp, ebp
je 0x1002d51d
mov eax, dword [edi + 4]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1002d51d
lea ecx, [esp + 0x7c]
push ecx
push eax
call fcn.1002ba70
add esp, 8
mov dword [esp + 0x20], eax
xor edi, edi
mov edx, 1
mov ecx, edi
shl edx, cl
or esi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x1002d461
mov eax, dword [esp + edi*4 + 0x7c]
cmp eax, 0xffffffff
jae 0x1002d461
mov ecx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x14]
mov edx, 0x300
mov ebx, 0x29
mov dword [ecx + eax*8], esi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [esp + 0x14], eax
lea ecx, [edi + 0x10]
mov eax, 1
shl eax, cl
test dword [esp + 0x20], eax
je 0x1002d4d3
mov eax, dword [esp + edi*4 + 0x7c]
cmp eax, 0xffffffff
jae 0x1002d4d3
mov esi, eax
mov dword [esp + 0x18], 4
lea eax, [esp + 0x18]
or ebx, 0x32
push eax
lea eax, [esp + 0x34]
push eax
push 0x1008
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1002d4b7
cmp dword [esp + 0x30], 1
jne 0x1002d4b7
push eax
push eax
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x14]
mov edx, 0x10
mov ecx, dword [esp + 0x24]
mov dword [ecx + eax*8], esi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [esp + 0x14], eax
jmp 0x1002d4d8
cmp esi, 0xffffffff
je 0x1002d4fe
mov eax, dword [esp + 0x38]
push ebx
push dword [eax + 0xe4]
push esi
call dword [esp + 0x40]
test eax, eax
jne 0x1002d635
mov eax, dword [esp + 0x20]
inc edi
cmp edi, 5
jb 0x1002d425
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x1002d411
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x38]
cmp dword [esp + 0xf0], 0
mov dword [esp + 0x20], 0
jbe 0x1002d653
lea eax, [edi + 0xe4]
lea edi, [esi + 4]
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x40]
lea edi, [edi + ebx*8]
add esi, 4
nop word [eax + eax]
movzx edx, word [esi]
mov al, dl
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov dword [esp + 0x14], ecx
or dword [esp + 0x14], 4
test dl, 2
mov eax, dword [esp + 0x14]
cmove eax, ecx
test dl, 4
je 0x1002d5c6
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 4
push ecx
lea ecx, [esp + 0x34]
or eax, 0x32
push ecx
push 0x1008
mov dword [esp + 0x20], eax
mov eax, dword [esi - 4]
push 0xffff
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1002d5c2
cmp dword [esp + 0x30], 1
jne 0x1002d5c2
push eax
push eax
push eax
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push dword [eax]
push dword [esi - 4]
call dword [esp + 0x40]
test eax, eax
jne 0x1002d635
mov eax, dword [esi - 4]
mov dword [edi - 4], eax
xor eax, eax
mov word [edi], ax
test byte [esi], 1
je 0x1002d5f0
mov eax, 0x300
mov word [edi], ax
test byte [esi], 2
movzx ecx, ax
je 0x1002d603
or eax, 0x400
mov word [edi], ax
movzx ecx, ax
test byte [esi], 4
je 0x1002d60e
or ecx, 0x10
mov word [edi], cx
mov eax, dword [esp + 0x20]
inc ebx
inc eax
mov dword [esp + 0x14], ebx
add edi, 8
mov dword [esp + 0x20], eax
add esi, 8
cmp eax, dword [esp + 0xf0]
jb 0x1002d550
mov esi, dword [esp + 0x1c]
jmp 0x1002d65d
cmp byte [esp + 0x13], 0
je 0x1002d649
push dword [esp + 0x24]
call dword [0x100691b0]
add esp, 4
mov eax, 4
jmp 0x1002d3cd
lea esi, [edi + 0xe4]
mov dword [esp + 0x1c], esi
test ebx, ebx
jne 0x1002d73d
cmp byte [esp + 0x100], bl
je 0x1002d8af
xor edi, edi
mov dword [esp + 0x30], edi
push 0
push dword [esp + 0x40]
push 0
push esi
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp dword [esp + 0xf0], 0
mov ecx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov dword [esp + 0x18], ecx
jbe 0x1002d7fe
mov eax, dword [esp + 0x24]
lea eax, [eax + ebp*8]
add eax, 6
xor ebp, ebp
mov dword [esp + 0x28], eax
movsx ebx, word [eax]
lea edx, [esp + 0x50]
mov eax, dword [esp + 0x40]
xor esi, esi
push edx
push esi
mov dword [esp + 0x28], ebx
mov eax, dword [eax + ebp*8]
push eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], esi
call ecx
test eax, eax
jne 0x1002d775
mov ecx, dword [esp + 0x50]
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 [esp + 0x48], 0
movzx eax, cx
mov esi, eax
je 0x1002d771
test edi, edi
jne 0x1002d771
test ebx, ebx
je 0x1002d771
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x2c]
push edi
push dword [eax]
push dword [esp + 0x54]
call dword [esp + 0x40]
movzx eax, si
jmp 0x1002d7d0
push 0
push 0
push ebx
push dword [esp + 0x30]
call fcn.10033210
mov edi, eax
add esp, 0x10
mov dword [esp + 0x30], edi
test edi, edi
jns 0x1002d762
mov eax, 0xc
jmp 0x1002d3cd
jle 0x1002d678
mov dword [esp + 0x2c], edi
jmp 0x1002d689
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax]
push dword [esp + 0x54]
call dword [esp + 0x40]
test edi, edi
jne 0x1002d78e
movzx eax, si
jmp 0x1002d7d0
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 [esp + 0x20], 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx eax, cx
mov ecx, dword [esp + 0x40]
mov word [ecx + ebp*8 + 6], ax
inc ebp
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
add eax, 8
mov dword [esp + 0x28], eax
cmp ebp, dword [esp + 0xf0]
jb 0x1002d6b1
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x14]
test ebp, ebp
je 0x1002d8a3
mov eax, dword [esp + 0x38]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
test eax, eax
je 0x1002d8a3
mov ebp, dword [esp + 0x30]
nop dword [eax]
lea ecx, [esp + 0x7c]
push ecx
push eax
call fcn.1002ba70
add esp, 8
mov ebx, eax
xor esi, esi
mov edi, 1
lea ecx, [esi + 0x10]
mov edx, edi
bts edx, ecx
test ebx, edx
je 0x1002d890
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0
push eax
push 0
push dword [esp + esi*4 + 0x84]
call dword [esp + 0x24]
test eax, eax
jne 0x1002d875
cmp dword [esp + 0x48], eax
je 0x1002d875
test ebp, ebp
jne 0x1002d875
cmp dword [esp + 0x50], ebp
je 0x1002d875
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax]
push dword [esp + esi*4 + 0x84]
call dword [esp + 0x40]
inc esi
rol edi, 1
cmp esi, 5
jb 0x1002d837
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x1002d820
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push dword [eax]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x13], 0
je 0x1002d8c3
push dword [esp + 0x24]
call dword [0x100691b0]
add esp, 4
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x1002d8d1
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
cmp byte [esp + 0xfc], 0
je 0x1002d933
test ebx, ebx
jne 0x1002d933
cmp byte [esp + 0x100], bl
jne 0x1002d933
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], ebx
cmp dword [eax], 0xbab1e
jne 0x1002d933
cmp byte [eax + 0xeb], bl
jne 0x1002d933
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.1002d150
add esp, 8
test eax, eax
jne 0x1002d933
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1002d933
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
jg 0x1002d926
test eax, eax
jns 0x1002d928
mov eax, ecx
cdq
push edx
push eax
call fcn.100336d0
add esp, 8
xor eax, eax
jmp 0x1002d3cd
mov ecx, dword [esp + 0xdc]
mov eax, 1
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10056613
add esp, 0xd4
ret