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

Disassembly:
sub esp, 0xd0
mov eax, dword [0x4ad3b0]
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 + 0x34], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x10], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x24], ebp
mov byte [esp + 0xb], 0
push edi
lea edi, [esp + 0x88]
mov dword [esp + 0x1c], edi
test esi, esi
je 0x4147d9
cmp dword [esi], 0xbab1e
jne 0x4147d9
cmp byte [esi + 0x10b], 0
je 0x4141aa
pop edi
pop esi
lea eax, [ebp + 8]
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.00464714
add esp, 0xd0
ret
mov eax, dword [esp + 0xec]
mov dword [esp + 0x34], eax
test eax, eax
jns 0x4141d6
pop edi
pop esi
mov eax, 0xa
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.00464714
add esp, 0xd0
ret
push ebx
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x414229
nop
lea eax, [esp + 0x78]
push eax
push ebx
call fcn.00412be0
add esp, 8
mov edi, eax
xor eax, eax
mov esi, 1
lea ecx, [eax + 0x10]
mov edx, esi
bts edx, ecx
test edi, edx
je 0x414213
cmp dword [esp + eax*4 + 0x78], 0xffffffff
jae 0x414213
inc eax
rol esi, 1
inc ebp
cmp eax, 5
jb 0x4141f7
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x40], ebp
test ebx, ebx
jne 0x4141e0
mov esi, dword [esp + 0x18]
lea edi, [esp + 0x8c]
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00414030
mov eax, dword [esp + 0x24]
add esp, 8
test eax, eax
js 0x41424c
mov ecx, dword [esp + 0x38]
cmp eax, ecx
cmovl ecx, eax
mov dword [esp + 0x38], 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 0x4142a4
lea eax, [ecx*8]
push eax
call dword [section..data]
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
jne 0x41429f
lea eax, [edi + 3]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.00464714
add esp, 0xd0
ret
mov byte [esp + 0x13], 1
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], eax
test ebp, ebp
je 0x4143c3
mov eax, dword [esi + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4143c3
lea ecx, [esp + 0x78]
push ecx
push eax
call fcn.00412be0
mov ebp, eax
lea ebx, [edi + ebx*8]
add esp, 8
mov dword [esp + 0x48], ebp
xor esi, esi
mov ecx, esi
mov edx, 1
shl edx, cl
lea ecx, [esi + 0x10]
mov eax, edx
bts eax, ecx
test ebp, eax
je 0x4143af
mov eax, dword [esp + esi*4 + 0x78]
cmp eax, 0xffffffff
jae 0x4143af
inc dword [esp + 0x24]
mov edi, ebx
add ebx, 8
mov dword [esp + 0x30], ebx
xor ebx, ebx
mov dword [edi], eax
xor eax, eax
mov word [edi + 4], ax
test ebp, edx
je 0x414330
lea ebx, [eax + 0x29]
mov eax, 0x300
mov word [edi + 4], ax
mov eax, 1
shl eax, cl
test ebp, eax
je 0x414383
mov ebp, dword [esp + esi*4 + 0x78]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], 4
push eax
push 0x1008
push 0xffff
push ebp
or ebx, 0x32
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x41437a
cmp dword [esp + 0x28], 1
jne 0x41437a
push eax
push eax
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
or word [edi + 4], 0x10
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
push ebx
push dword [eax + 0x104]
push dword [esp + esi*4 + 0x80]
call dword [esp + 0x40]
test eax, eax
jne 0x4145b1
mov ebx, dword [esp + 0x30]
inc esi
cmp esi, 5
jb 0x4142e3
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov eax, dword [eax + 0x10]
jmp 0x4142be
mov esi, dword [esp + 0xec]
xor ebp, ebp
mov dword [esp + 0x14], ebp
test esi, esi
je 0x4144d4
mov esi, dword [esp + 0x3c]
lea edi, [edi + ebx*8]
add edi, 4
add esi, 4
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 ebx, ecx
or ebx, 4
and al, 2
cmove ebx, ecx
test dl, 4
je 0x414449
mov ebp, dword [esi - 4]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x34], 4
push eax
push 0x1008
push 0xffff
push ebp
or ebx, 0x32
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x414445
cmp dword [esp + 0x48], 1
jne 0x414445
push eax
push eax
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push ebx
push dword [eax + 0x104]
push dword [esi - 4]
call dword [esp + 0x40]
test eax, eax
jne 0x4145b1
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 0x414486
mov eax, 0x300
mov word [edi], ax
mov ecx, eax
movzx edx, word [esi]
movzx eax, dx
movzx edx, cx
mov ebx, eax
test al, 2
je 0x4144a1
or ecx, 0x400
mov word [edi], cx
movzx ebx, word [esi]
movzx edx, cx
test bl, 4
je 0x4144ac
or edx, 0x10
mov word [edi], dx
mov ebx, dword [esp + 0x24]
inc ebp
inc ebx
mov dword [esp + 0x14], ebp
add edi, 8
mov dword [esp + 0x24], ebx
add esi, 8
cmp ebp, dword [esp + 0xec]
jb 0x4143e5
mov esi, dword [esp + 0xec]
test ebx, ebx
jne 0x4145cf
cmp byte [esp + 0xfc], bl
je 0x41474d
mov ebx, dword [esp + 0x20]
xor ebp, ebp
mov eax, dword [esp + 0x18]
push 0
push dword [esp + 0x3c]
add eax, 0x104
push 0
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov ecx, dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
xor edi, edi
mov dword [esp + 0x1c], ecx
test esi, esi
je 0x41468d
mov eax, dword [esp + 0x40]
lea eax, [eax*8 + 6]
add eax, ebx
mov dword [esp + 0x28], eax
nop
movsx ebx, word [eax]
lea edx, [esp + 0x4c]
mov eax, dword [esp + 0x3c]
xor esi, esi
push edx
push esi
mov dword [esp + 0x1c], ebx
mov eax, dword [eax + edi*8]
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x58], esi
call ecx
test eax, eax
jne 0x414604
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 + 0x44], 0
movzx eax, cx
mov esi, eax
je 0x414600
test ebp, ebp
jne 0x414600
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x4c], ebp
je 0x414604
inc dword [esp + 0x2c]
jmp 0x414604
cmp byte [esp + 0x13], 0
je 0x4145c5
push dword [esp + 0x20]
call dword [0x4ad004]
add esp, 4
mov eax, 4
jmp 0x414286
push 0
push 0
push ebx
mov ebx, dword [esp + 0x2c]
push ebx
call fcn.004329d0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jns 0x4145f1
mov eax, 0xc
jmp 0x414286
jle 0x4144ef
mov dword [esp + 0x2c], ebp
jmp 0x414509
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
push dword [eax + 0x104]
push dword [esp + 0x38]
call dword [esp + 0x40]
test ebp, ebp
jne 0x414621
movzx eax, si
jmp 0x414667
mov eax, esi
mov edx, ebx
or eax, 1
and edx, 0x300
movzx ecx, ax
movzx eax, si
mov esi, dword [esp + 0x14]
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 + 0x3c]
mov word [ecx + edi*8 + 6], ax
inc edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
add eax, 8
mov dword [esp + 0x28], eax
cmp edi, dword [esp + 0xec]
jb 0x414530
cmp dword [esp + 0x40], 0
je 0x414737
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
test eax, eax
je 0x414737
nop dword [eax + eax]
lea ecx, [esp + 0x78]
push ecx
push eax
call fcn.00412be0
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 0x414724
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0
push eax
push 0
push dword [esp + esi*4 + 0x80]
call dword [esp + 0x28]
test eax, eax
jne 0x414705
cmp dword [esp + 0x44], eax
je 0x414705
test ebp, ebp
jne 0x414705
cmp dword [esp + 0x4c], ebp
je 0x414705
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
push 0
push dword [eax + 0x104]
push dword [esp + esi*4 + 0x80]
call dword [esp + 0x40]
inc esi
rol edi, 1
cmp esi, 5
jb 0x4146c7
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4146b0
mov ebp, dword [esp + 0x18]
push dword [ebp + 0x104]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
mov ebx, dword [esp + 0x24]
jmp 0x414751
mov ebp, dword [esp + 0x18]
cmp byte [esp + 0x13], 0
je 0x414765
push dword [esp + 0x20]
call dword [0x4ad004]
add esp, 4
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x414773
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
cmp byte [esp + 0xf8], 0
je 0x4147d2
test ebx, ebx
jne 0x4147d2
cmp byte [esp + 0xfc], bl
jne 0x4147d2
cmp dword [ebp], 0xbab1e
mov dword [esp + 0x1c], ebx
jne 0x4147d2
cmp byte [ebp + 0x10b], bl
jne 0x4147d2
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00414030
add esp, 8
test eax, eax
jne 0x4147d2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4147d2
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jg 0x4147c5
test eax, eax
jns 0x4147c7
mov eax, ecx
cdq
push edx
push eax
call fcn.00432ee0
add esp, 8
xor eax, eax
jmp 0x414286
mov ecx, dword [esp + 0xd8]
mov eax, 1
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00464714
add esp, 0xd0
ret