Function at 0x100822c0
Capabilities:
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
sub esp, 0xd0
mov eax, dword [0x101d5000]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd8]
push ebp
push esi
mov esi, dword [esp + 0xdc]
xor ebp, ebp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x14], esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], ebp
mov byte [esp + 0xb], 0
push edi
lea edi, [esp + 0x88]
mov dword [esp + 0x1c], edi
test esi, esi
je 0x100829e6
cmp dword [esi], 0xbab1e
jne 0x100829e6
cmp byte [esi + 0xeb], 0
je 0x1008234a
pop edi
pop esi
lea eax, [ebp + 8]
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.100cf30e
add esp, 0xd0
ret
mov eax, dword [esp + 0xec]
mov dword [esp + 0x3c], eax
test eax, eax
jns 0x10082376
pop edi
pop esi
mov eax, 0xa
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.100cf30e
add esp, 0xd0
ret
push ebx
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x100823e0
nop
lea eax, [esp + 0x78]
push eax
push ebx
call fcn.10080bf0
add esp, 8
mov edi, eax
xor edx, edx
mov eax, 1
or esi, 0xffffffff
test edi, eax
je 0x100823aa
mov ecx, dword [esp + edx*4 + 0x78]
cmp ecx, 0xffffffff
jae 0x100823aa
inc ebp
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x100823bd
cmp dword [esp + edx*4 + 0x78], 0xffffffff
jae 0x100823bd
inc ebp
jmp 0x100823c2
cmp esi, 0xffffffff
je 0x100823ca
inc edx
rol eax, 1
cmp edx, 5
jb 0x10082397
mov ebx, dword [ebx + 4]
mov dword [esp + 0x3c], ebp
test ebx, ebx
jne 0x10082380
mov esi, dword [esp + 0x1c]
lea edi, [esp + 0x8c]
lea eax, [esp + 0x18]
push eax
push esi
call fcn.100821c0
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
js 0x10082403
mov ecx, dword [esp + 0x40]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0xec]
add eax, ebp
cmp byte [esp + 0xfc], 0
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x1008245b
lea eax, [ecx*8]
push eax
call dword [0x101d4cc0]
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
jne 0x10082456
lea eax, [edi + 3]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.100cf30e
add esp, 0xd0
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 + 0x38], eax
test ebp, ebp
je 0x10082589
mov eax, dword [esi + 4]
mov dword [esp + 0x24], eax
test eax, eax
je 0x10082589
lea ecx, [esp + 0x78]
push ecx
push eax
call fcn.10080bf0
add esp, 8
mov dword [esp + 0x28], eax
xor edi, edi
mov edx, 1
mov ecx, edi
shl edx, cl
or esi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x100824d1
mov eax, dword [esp + edi*4 + 0x78]
cmp eax, 0xffffffff
jae 0x100824d1
mov ecx, dword [esp + 0x20]
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 + 0x28], eax
je 0x10082543
mov eax, dword [esp + edi*4 + 0x78]
cmp eax, 0xffffffff
jae 0x10082543
mov esi, eax
mov dword [esp + 0x18], 4
lea eax, [esp + 0x18]
or ebx, 0x32
push eax
lea eax, [esp + 0x38]
push eax
push 0x1008
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10082527
cmp dword [esp + 0x34], 1
jne 0x10082527
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 + 0x20]
mov dword [ecx + eax*8], esi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [esp + 0x14], eax
jmp 0x10082548
cmp esi, 0xffffffff
je 0x1008256e
mov eax, dword [esp + 0x1c]
push ebx
push dword [eax + 0xe4]
push esi
call dword [esp + 0x44]
test eax, eax
jne 0x100827b6
mov eax, dword [esp + 0x28]
inc edi
cmp edi, 5
jb 0x10082495
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x10082481
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
cmp dword [esp + 0xec], 0
mov dword [esp + 0x24], 0
jbe 0x100826b8
mov esi, dword [esp + 0x44]
lea edi, [edi + ebx*8]
add edi, 4
add esi, 4
nop dword [eax]
movzx edx, word [esi]
mov al, dl
and al, 1
movzx ecx, al
mov al, dl
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov dword [esp + 0x14], ecx
or dword [esp + 0x14], 4
and al, 2
mov eax, dword [esp + 0x14]
cmove eax, ecx
test dl, 4
je 0x10082627
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 4
push ecx
lea ecx, [esp + 0x38]
or eax, 0x32
push ecx
push 0x1008
mov dword [esp + 0x20], eax
mov eax, dword [esi - 4]
push 0xffff
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10082623
cmp dword [esp + 0x34], 1
jne 0x10082623
push eax
push eax
push eax
push dword [esp + 0x38]
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0xe4]
push dword [esi - 4]
call dword [esp + 0x44]
test eax, eax
jne 0x100827b6
mov eax, dword [esi - 4]
xor ecx, ecx
mov dword [edi - 4], eax
xor eax, eax
mov word [edi], ax
movzx eax, word [esi]
mov edx, eax
test al, 1
je 0x10082664
mov eax, 0x300
mov word [edi], ax
mov ecx, eax
movzx edx, word [esi]
movzx eax, dx
movzx edx, cx
mov ebp, eax
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x3c]
test al, 2
je 0x10082689
or ecx, 0x400
mov word [edi], cx
movzx eax, word [esi]
movzx edx, cx
jmp 0x1008268d
mov eax, dword [esp + 0x18]
test al, 4
je 0x10082697
or edx, 0x10
mov word [edi], dx
mov eax, dword [esp + 0x24]
inc ebx
inc eax
mov dword [esp + 0x14], ebx
add edi, 8
mov dword [esp + 0x24], eax
add esi, 8
cmp eax, dword [esp + 0xec]
jb 0x100825b0
test ebx, ebx
jne 0x100827d4
cmp byte [esp + 0xfc], bl
je 0x1008295b
mov esi, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x1c]
push 0
push dword [esp + 0x44]
add eax, 0xe4
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp dword [esp + 0xec], 0
mov ecx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov dword [esp + 0x18], ecx
jbe 0x1008289e
lea eax, [ebp*8 + 6]
add eax, esi
xor ebp, ebp
mov dword [esp + 0x2c], eax
nop dword [eax + eax]
movsx ebx, word [eax]
lea edx, [esp + 0x4c]
mov eax, dword [esp + 0x44]
xor esi, esi
push edx
push esi
mov dword [esp + 0x30], ebx
mov eax, dword [eax + ebp*8]
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], esi
call ecx
test eax, eax
jne 0x1008280d
mov ecx, dword [esp + 0x4c]
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 + 0x4c]
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
and bl, 4
movzx ecx, ax
mov eax, edx
cmove ecx, eax
cmp dword [esp + 0x48], 0
movzx eax, cx
mov esi, eax
je 0x10082809
test edi, edi
jne 0x10082809
cmp dword [esp + 0x4c], edi
je 0x10082809
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x30]
push edi
push dword [eax + 0xe4]
push dword [esp + 0x2c]
call dword [esp + 0x44]
movzx eax, si
jmp 0x10082870
cmp byte [esp + 0x13], 0
je 0x100827ca
push dword [esp + 0x20]
call dword [0x101d4cc4]
add esp, 4
mov eax, 4
jmp 0x1008243d
mov esi, dword [esp + 0x20]
push 0
push 0
push ebx
push esi
call fcn.100a04e0
mov edi, eax
add esp, 0x10
mov dword [esp + 0x34], edi
test edi, edi
jns 0x100827fa
mov eax, 0xc
jmp 0x1008243d
jle 0x100826d7
mov dword [esp + 0x30], edi
jmp 0x100826f1
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0xe4]
push dword [esp + 0x2c]
call dword [esp + 0x44]
test edi, edi
jne 0x1008282a
movzx eax, si
jmp 0x10082870
mov eax, esi
mov edx, ebx
or eax, 1
and edx, 0x300
movzx ecx, ax
movzx eax, si
mov esi, dword [esp + 0x28]
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
and bl, 0x10
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
movzx eax, cx
mov ecx, dword [esp + 0x44]
mov word [ecx + ebp*8 + 6], ax
inc ebp
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
add eax, 8
mov dword [esp + 0x2c], eax
cmp ebp, dword [esp + 0xec]
jb 0x10082720
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x14]
test ebp, ebp
je 0x1008294b
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1008294b
mov ebp, dword [esp + 0x34]
nop dword [eax]
lea ecx, [esp + 0x78]
push ecx
push eax
call fcn.10080bf0
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 0x10082934
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0
push eax
push 0
push dword [esp + esi*4 + 0x80]
call dword [esp + 0x24]
test eax, eax
jne 0x10082915
cmp dword [esp + 0x48], eax
je 0x10082915
test ebp, ebp
jne 0x10082915
cmp dword [esp + 0x4c], ebp
je 0x10082915
inc dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0xe4]
push dword [esp + esi*4 + 0x80]
call dword [esp + 0x44]
inc esi
rol edi, 1
cmp esi, 5
jb 0x100828d7
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x100828c0
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push dword [eax + 0xe4]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x13], 0
je 0x1008296f
push dword [esp + 0x20]
call dword [0x101d4cc4]
add esp, 4
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x1008297d
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
cmp byte [esp + 0xf8], 0
je 0x100829df
test ebx, ebx
jne 0x100829df
cmp byte [esp + 0xfc], bl
jne 0x100829df
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
cmp dword [eax], 0xbab1e
jne 0x100829df
cmp byte [eax + 0xeb], bl
jne 0x100829df
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.100821c0
add esp, 8
test eax, eax
jne 0x100829df
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100829df
mov ecx, dword [esp + 0x40]
cmp eax, ecx
jg 0x100829d2
test eax, eax
jns 0x100829d4
mov eax, ecx
cdq
push edx
push eax
call fcn.100a09f0
add esp, 8
xor eax, eax
jmp 0x1008243d
mov ecx, dword [esp + 0xd8]
mov eax, 1
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.100cf30e
add esp, 0xd0
ret