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

Disassembly:
sub esp, 0xd0
mov eax, dword [0x48a3c0]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd8]
push ebp
mov dword [esp + 0x30], eax
xor ebp, ebp
mov eax, dword [esp + 0xe8]
push edi
mov edi, dword [esp + 0xdc]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x84]
mov dword [esp + 0x14], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], eax
mov byte [esp + 0xb], 0
test edi, edi
je 0x427e27
cmp dword [edi], 0xbab1e
jne 0x427e27
cmp byte [edi + 0x10b], 0
je 0x4277c8
pop edi
lea eax, [ebp + 8]
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.00474635
add esp, 0xd0
ret
push esi
mov esi, dword [esp + 0xec]
mov dword [esp + 0x30], esi
test esi, esi
jns 0x4277f5
pop esi
pop edi
mov eax, 0xa
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.00474635
add esp, 0xd0
ret
push ebx
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x427846
nop dword [eax]
lea eax, [esp + 0x78]
push eax
push ebx
call fcn.004261a0
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 0x427833
cmp dword [esp + eax*4 + 0x78], 0xffffffff
jae 0x427833
inc eax
rol esi, 1
inc ebp
cmp eax, 5
jb 0x427817
mov ebx, dword [ebx + 0x10]
mov dword [esp + 0x40], ebp
test ebx, ebx
jne 0x427800
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00427640
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
js 0x427865
cmp eax, esi
cmovl esi, eax
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0xec]
cmp byte [esp + 0xfc], 0
lea eax, [esi + ebp]
lea ecx, [eax + 1]
cmove ecx, eax
cmp ecx, 0xa
jbe 0x4278c0
lea eax, [ecx*8]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
mov dword [esp + 0x20], ebx
test ebx, ebx
jne 0x4278b9
lea eax, [ebx + 3]
pop ebx
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.00474635
add esp, 0xd0
ret
mov byte [esp + 0x13], 1
jmp 0x4278c7
lea ebx, [esp + 0x8c]
mov eax, dword [sym.imp.WS2_32.dll_WSAEventSelect]
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
test ebp, ebp
je 0x427a1e
mov eax, dword [edi + 4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x427a1e
nop dword [eax]
lea ecx, [esp + 0x78]
push ecx
push eax
call fcn.004261a0
mov ebp, eax
add esp, 8
mov eax, dword [esp + 0x24]
xor esi, esi
mov dword [esp + 0x38], ebp
lea ebx, [ebx + eax*8]
nop dword [eax]
mov ecx, esi
mov edx, 1
shl edx, cl
lea ecx, [esi + 0x10]
mov eax, edx
bts eax, ecx
test ebp, eax
je 0x4279d8
mov eax, dword [esp + esi*4 + 0x78]
cmp eax, 0xffffffff
jae 0x4279d8
inc dword [esp + 0x24]
mov edi, ebx
add ebx, 8
mov dword [esp + 0x48], ebx
xor ebx, ebx
mov dword [edi], eax
xor eax, eax
mov word [edi + 4], ax
test ebp, edx
je 0x42795d
lea ebx, [eax + 0x29]
mov eax, 0x300
mov word [edi + 4], ax
mov eax, 1
shl eax, cl
test ebp, eax
je 0x4279b0
mov ebp, dword [esp + esi*4 + 0x78]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], 4
push eax
push 0x1008
push 0xffff
push ebp
or ebx, 0x32
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4279a7
cmp dword [esp + 0x28], 1
jne 0x4279a7
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 + 0x38]
mov edi, dword [esp + 0x1c]
push ebx
push dword [edi + 0x104]
push dword [esp + esi*4 + 0x80]
call dword [esp + 0x3c]
test eax, eax
jne 0x4279f0
mov ebx, dword [esp + 0x48]
inc esi
cmp esi, 5
jb 0x427910
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x14], eax
test eax, eax
je 0x427a13
mov ebx, dword [esp + 0x20]
jmp 0x4278f0
cmp byte [esp + 0x13], 0
je 0x427b33
mov edx, dword [esp + 0x20]
push edx
call dword [0x48a004]
add esp, 4
mov eax, 4
jmp 0x4278a0
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0xec]
xor ebp, ebp
mov dword [esp + 0x14], ebp
test esi, esi
je 0x427b3d
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
add edi, 4
add esi, 4
lea edi, [edi + ecx*8]
nop dword [eax]
movzx edx, word [esi]
mov al, dl
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x29
mov ebx, ecx
or ebx, 4
test dl, 2
cmove ebx, ecx
test dl, 4
je 0x427aa3
mov ebp, dword [esi - 4]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x4c], 4
push eax
push 0x1008
push 0xffff
push ebp
or ebx, 0x32
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x427a9f
cmp dword [esp + 0x18], 1
jne 0x427a9f
push eax
push eax
push eax
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x20]
add ebx, 0x104
push dword [ebx]
push dword [esi - 4]
call dword [esp + 0x3c]
test eax, eax
jne 0x427b1f
mov eax, dword [esi - 4]
mov dword [edi - 4], eax
xor eax, eax
mov word [edi], ax
test byte [esi], 1
je 0x427ad3
mov eax, 0x300
mov word [edi], ax
test byte [esi], 2
movzx ecx, ax
je 0x427ae6
or eax, 0x400
mov word [edi], ax
movzx ecx, ax
test byte [esi], 4
je 0x427af1
or ecx, 0x10
mov word [edi], cx
mov ecx, dword [esp + 0x24]
inc ebp
inc ecx
mov dword [esp + 0x14], ebp
add edi, 8
mov dword [esp + 0x24], ecx
add esi, 8
cmp ebp, dword [esp + 0xec]
jb 0x427a40
mov esi, dword [esp + 0xec]
mov edi, dword [esp + 0x1c]
jmp 0x427b43
cmp byte [esp + 0x13], 0
je 0x427b33
push dword [esp + 0x20]
call dword [0x48a004]
add esp, 4
mov eax, 4
jmp 0x4278a0
lea ebx, [edi + 0x104]
test ecx, ecx
jne 0x427c22
cmp byte [esp + 0xfc], cl
je 0x427d97
xor ebp, ebp
push 0
push dword [esp + 0x38]
push 0
push ebx
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 + 0x18], ecx
test esi, esi
je 0x427cdb
mov eax, dword [esp + 0x40]
lea eax, [eax*8 + 6]
add eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
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 + 0x44], eax
mov dword [esp + 0x58], esi
call ecx
test eax, eax
jne 0x427c56
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
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 + 0x44], 0
movzx eax, cx
mov esi, eax
je 0x427c52
test ebp, ebp
jne 0x427c52
test ebx, ebx
je 0x427c52
mov eax, dword [esp + 0x1c]
inc dword [esp + 0x2c]
push ebp
push dword [eax + 0x104]
push dword [esp + 0x40]
call dword [esp + 0x3c]
movzx eax, si
jmp 0x427cb5
push 0
push 0
push ecx
push dword [esp + 0x2c]
call fcn.00446170
mov ebp, eax
add esp, 0x10
test ebp, ebp
jns 0x427c43
mov eax, 0xc
jmp 0x4278a0
jle 0x427b5a
mov dword [esp + 0x2c], ebp
jmp 0x427b6b
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0x104]
push dword [esp + 0x40]
call dword [esp + 0x3c]
test ebp, ebp
jne 0x427c73
movzx eax, si
jmp 0x427cb5
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 + 0x14], 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 + 0x18]
add eax, 8
mov dword [esp + 0x28], eax
cmp edi, dword [esp + 0xec]
jb 0x427b92
cmp dword [esp + 0x40], 0
mov edi, dword [esp + 0x1c]
je 0x427d8b
mov eax, dword [edi + 4]
mov dword [esp + 0x28], eax
test eax, eax
je 0x427d8b
nop dword [eax]
lea ecx, [esp + 0x78]
push ecx
push eax
call fcn.004261a0
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 0x427d74
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 0x427d55
cmp dword [esp + 0x44], eax
je 0x427d55
test ebp, ebp
jne 0x427d55
cmp dword [esp + 0x4c], ebp
je 0x427d55
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax + 0x104]
push dword [esp + esi*4 + 0x80]
call dword [esp + 0x3c]
inc esi
rol edi, 1
cmp esi, 5
jb 0x427d17
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x427d00
mov edi, dword [esp + 0x1c]
push dword [edi + 0x104]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
cmp byte [esp + 0x13], 0
je 0x427dab
push dword [esp + 0x20]
call dword [0x48a004]
add esp, 4
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x427db9
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
cmp byte [esp + 0xf8], 0
je 0x427e20
cmp dword [esp + 0x24], 0
jne 0x427e20
cmp byte [esp + 0xfc], 0
jne 0x427e20
cmp dword [edi], 0xbab1e
mov dword [esp + 0x18], 0
jne 0x427e20
cmp byte [edi + 0x10b], 0
jne 0x427e20
lea eax, [esp + 0x18]
push eax
push edi
call fcn.00427640
add esp, 8
test eax, eax
jne 0x427e20
mov eax, dword [esp + 0x18]
test eax, eax
je 0x427e20
mov ecx, dword [esp + 0x34]
cmp eax, ecx
jg 0x427e13
test eax, eax
jns 0x427e15
mov eax, ecx
cdq
push edx
push eax
call fcn.00446630
add esp, 8
xor eax, eax
jmp 0x4278a0
mov ecx, dword [esp + 0xd4]
mov eax, 1
pop edi
pop ebp
xor ecx, esp
call fcn.00474635
add esp, 0xd0
ret