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

Disassembly:
sub esp, 0xbc
mov eax, dword [0x4c2100]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xc4]
push ebp
push esi
mov esi, dword [esp + 0xc8]
xor ebp, ebp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov byte [esp + 0xb], 0
push edi
lea edi, [esp + 0x74]
mov dword [esp + 0x20], edi
test esi, esi
je 0x436d27
cmp dword [esi], 0xbab1e
jne 0x436d27
cmp byte [esi + 0xe2], 0
je 0x436717
pop edi
pop esi
lea eax, [ebp + 8]
pop ebp
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00476631
add esp, 0xbc
ret
cmp dword [esp + 0xd8], ebp
jge 0x43673d
pop edi
pop esi
mov eax, 0xa
pop ebp
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00476631
add esp, 0xbc
ret
push ebx
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x4367a6
lea eax, [esp + 0x64]
push eax
push ebx
call fcn.00434e40
add esp, 8
mov edi, eax
xor edx, edx
mov eax, 1
nop dword [eax]
or esi, 0xffffffff
test edi, eax
je 0x436773
mov ecx, dword [esp + edx*4 + 0x64]
cmp ecx, 0xffffffff
jae 0x436773
inc ebp
mov esi, ecx
mov ecx, eax
rol ecx, 0x10
test edi, ecx
je 0x436786
cmp dword [esp + edx*4 + 0x64], 0xffffffff
jae 0x436786
inc ebp
jmp 0x43678b
cmp esi, 0xffffffff
je 0x436793
inc edx
rol eax, 1
cmp edx, 5
jb 0x436760
mov ebx, dword [ebx + 4]
mov dword [esp + 0x2c], ebp
test ebx, ebx
jne 0x436745
mov esi, dword [esp + 0x20]
lea edi, [esp + 0x78]
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00436590
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
js 0x4367cf
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 0x436827
lea eax, [ecx*8]
push eax
call dword [0x4c2064]
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
test edi, edi
jne 0x436822
lea eax, [edi + 3]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00476631
add esp, 0xbc
ret
mov byte [esp + 0x13], 1
xor ebx, ebx
mov dword [esp + 0x14], ebx
test ebp, ebp
je 0x43692b
mov eax, dword [esi + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x43692b
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.00434e40
add esp, 8
mov dword [esp + 0x1c], eax
xor esi, esi
nop dword [eax + eax]
mov edx, 1
mov ecx, esi
shl edx, cl
or edi, 0xffffffff
xor ebx, ebx
test eax, edx
je 0x43689c
mov eax, dword [esp + esi*4 + 0x64]
cmp eax, 0xffffffff
jae 0x43689c
mov ecx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x14]
mov edx, 0x300
mov ebx, 0x29
mov dword [ecx + eax*8], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [esp + 0x14], eax
lea ecx, [esi + 0x10]
mov eax, 1
shl eax, cl
test dword [esp + 0x1c], eax
je 0x4368e3
mov eax, dword [esp + esi*4 + 0x64]
cmp eax, 0xffffffff
jae 0x4368e3
push 0
push 0
mov edi, eax
or ebx, 0x32
push 0
push edi
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], edi
mov word [ecx + eax*8 + 4], dx
inc eax
mov dword [esp + 0x14], eax
jmp 0x4368e8
cmp edi, 0xffffffff
je 0x436910
mov eax, dword [esp + 0x20]
push ebx
push dword [eax + 0xdc]
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x436a2d
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, 5
jb 0x436860
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x436844
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
cmp dword [esp + 0xd8], 0
mov dword [esp + 0x1c], 0
jbe 0x436a14
lea esi, [edi + 4]
mov edi, dword [esp + 0x34]
lea esi, [esi + ebx*8]
add edi, 4
nop
movzx edx, word [edi]
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
lea ecx, [edi - 4]
mov dword [esp + 0x18], ecx
test dl, 4
je 0x43699f
push 0
push 0
push 0
push dword [ecx]
or eax, 0x32
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x4369a3
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x24]
push dword [eax + 0xdc]
push dword [ecx]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test eax, eax
jne 0x436a2d
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esi - 4], eax
xor eax, eax
mov word [esi], ax
test byte [edi], 1
je 0x4369d5
mov eax, 0x300
mov word [esi], ax
test byte [edi], 2
movzx ecx, ax
je 0x4369e8
or eax, 0x400
mov word [esi], ax
movzx ecx, ax
test byte [edi], 4
je 0x4369f3
or ecx, 0x10
mov word [esi], cx
mov eax, dword [esp + 0x1c]
inc ebx
inc eax
mov dword [esp + 0x14], ebx
add esi, 8
mov dword [esp + 0x1c], eax
add edi, 8
cmp eax, dword [esp + 0xd8]
jb 0x436950
test ebx, ebx
jne 0x436a4b
cmp byte [esp + 0xe8], bl
je 0x436c99
xor esi, esi
mov dword [esp + 0x1c], esi
jmp 0x436a68
cmp byte [esp + 0x13], 0
je 0x436a41
push dword [esp + 0x24]
call dword [0x4c2068]
add esp, 4
mov eax, 4
jmp 0x436809
push 0
push 0
push ebx
push dword [esp + 0x30]
call fcn.0045ef20
mov esi, eax
add esp, 0x10
mov dword [esp + 0x1c], esi
mov ecx, eax
test esi, esi
jg 0x436a96
mov ecx, dword [esp + 0x20]
push 0
push dword [esp + 0xe0]
add ecx, 0xdc
push 0
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ecx, esi
test esi, esi
jns 0x436a96
mov eax, 0xc
jmp 0x436809
xor eax, eax
test ecx, ecx
cmovle ecx, eax
xor edi, edi
mov dword [esp + 0x28], ecx
cmp dword [esp + 0xd8], eax
jbe 0x436be1
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], esi
lea eax, [eax + ebp*8]
add eax, 6
mov dword [esp + 0x18], eax
mov ebp, eax
nop dword [eax + eax]
movsx eax, word [ebp]
xor ebx, ebx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push ebx
mov dword [esp + 0x40], ebx
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
test eax, eax
jne 0x436b5f
mov ecx, dword [esp + 0x38]
mov eax, ebx
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 + 0x30], 0
movzx eax, cx
mov ebx, eax
je 0x436b5f
test esi, esi
jg 0x436b5f
cmp dword [esp + 0x38], 0
je 0x436b5f
mov eax, dword [esp + 0x20]
inc dword [esp + 0x28]
push 0
push dword [eax + 0xdc]
mov eax, dword [esp + 0x3c]
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
jmp 0x436bc8
mov eax, dword [esp + 0x20]
push 0
push dword [eax + 0xdc]
mov eax, dword [esp + 0x3c]
push dword [eax + edi*8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
test esi, esi
jle 0x436bc8
mov eax, ebx
or eax, 1
test dword [esp + 0x18], 0x300
movzx ecx, ax
movzx eax, bx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 4
test byte [esp + 0x18], 0x10
movzx ecx, ax
mov eax, edx
cmove ecx, eax
movzx edx, cx
mov eax, edx
or eax, 2
test dword [esp + 0x18], 0x400
movzx ecx, ax
mov eax, edx
cmove ecx, eax
mov eax, dword [esp + 0x34]
mov word [eax + edi*8 + 6], cx
inc edi
add ebp, 8
cmp edi, dword [esp + 0xd8]
jb 0x436ad0
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
test ebp, ebp
je 0x436c89
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x436c89
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.00434e40
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 0x436c72
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 0x436c54
cmp dword [esp + 0x30], eax
je 0x436c54
test ebp, ebp
jg 0x436c54
cmp dword [esp + 0x38], eax
je 0x436c54
inc dword [esp + 0x28]
mov eax, dword [esp + 0x20]
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 0x436c17
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x436c00
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push dword [eax + 0xdc]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x13], 0
je 0x436cad
push dword [esp + 0x24]
call dword [0x4c2068]
add esp, 4
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x436cbb
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
cmp byte [esp + 0xe4], 0
je 0x436d20
test ebx, ebx
jne 0x436d20
cmp byte [esp + 0xe8], bl
jne 0x436d20
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], ebx
cmp dword [eax], 0xbab1e
jne 0x436d20
cmp byte [eax + 0xe2], bl
jne 0x436d20
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.00436590
add esp, 8
test eax, eax
jne 0x436d20
mov eax, dword [esp + 0x30]
test eax, eax
je 0x436d20
mov ecx, dword [esp + 0xdc]
cmp eax, ecx
jg 0x436d13
test eax, eax
jns 0x436d15
mov eax, ecx
cdq
push edx
push eax
call fcn.0045f3d0
add esp, 8
xor eax, eax
jmp 0x436809
mov ecx, dword [esp + 0xc4]
mov eax, 1
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00476631
add esp, 0xbc
ret