Function at 0x403070
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create raw socket
Create tcp socket
Create thread
Create udp socket
Receive data
Receive data on socket
Send data
Send data on socket
Terminate thread

Disassembly:
sub esp, 0x81c
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x828]
push esi
mov eax, dword [ebp + 0x2860]
push edi
push 0x1317d2a
push eax
lea edx, [ebp + 0x2864]
push ecx
push edx
lea eax, [esp + 0x23c]
push str._s__s__d__d_0
push eax
call ebx
add esp, 0x18
lea ecx, [esp + 0x22c]
push 0x200
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
lea edx, [esp + 0x434]
lea eax, [esp + 0x234]
push edx
push eax
call fcn.00401bb0
mov byte [esp + eax + 0x43c], 0
mov eax, dword [ebp + 0x2844]
add esp, 0x10
cmp eax, 9
jl 0x4030fa
mov dword [ebp + 0x2844], 1
jmp 0x403101
inc eax
mov dword [ebp + 0x2844], eax
mov edx, dword [ebp + 0x2844]
lea ecx, [esp + 0x42c]
push ecx
push edx
lea eax, [esp + 0x634]
push str._d_s_
push eax
call ebx
add esp, 0x10
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea edi, [esp + 0x62c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 0x2854]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
lea ecx, [esp + 0x634]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0
push 0
push ebp
push 0x403f60
push 0
push 0
mov dword [ebp + 0x2870], 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebp + 0x2988], eax
mov eax, dword [0x40f89c]
test eax, eax
jne 0x403f2c
jmp 0x40318f
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp + 0x2854]
mov edi, dword [sym.imp.MSVCRT.dll_rand]
cmp eax, 0xffffffff
je 0x403da4
mov eax, dword [ebp + 0x2870]
test eax, eax
je 0x403bb6
mov eax, dword [ebp + 0x2878]
mov ecx, dword [ebp + 0x2874]
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
push 0
push 0
or eax, ecx
push 0
lea esi, [ebp + 0x2404]
push eax
push 0xbc5
push esi
call fcn.004022e0
add esp, 0x18
mov ecx, ebp
push 0
push esi
call fcn.004043b0
call edi
cdq
mov ecx, 0x64
idiv ecx
lea edx, [edx + edx*2 + 0x40e018]
push edx
call edi
cdq
mov ecx, 0x64
idiv ecx
lea edx, [edx + edx*2 + 0x40e018]
push edx
call edi
cdq
mov ecx, 3
idiv ecx
shl edx, 9
add edx, 0x40f29c
push edx
call edi
cdq
mov ecx, 0x64
idiv ecx
lea edx, [edx + edx*2 + 0x40e018]
push edx
call edi
cdq
mov ecx, 0x64
idiv ecx
lea eax, [esp + 0x3c]
lea edx, [edx + edx*2 + 0x40e018]
push edx
push str._s_s_s_s_s
push eax
call ebx
push 0
push 0
push 0
push 0
push 0xbd6
push esi
call fcn.004022e0
add esp, 0x34
lea ecx, [esp + 0x2c]
push ecx
push esi
mov ecx, ebp
call fcn.004043b0
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp + 0x2928]
xor ebx, ebx
mov dword [esp + 0x10], eax
lea edi, [ebp + 0x2918]
mov eax, dword [edi]
test eax, eax
je 0x4032e6
movzx dx, byte [edi + 0x60]
push 0
push 0
push edx
push eax
push 0x3ec
push esi
call fcn.004022e0
mov eax, dword [esp + 0x28]
add esp, 0x18
mov ecx, ebp
push eax
push esi
call fcn.004043b0
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [esp + 0x10]
inc ebx
add edi, 4
add ecx, 0x14
cmp ebx, 4
mov dword [esp + 0x10], ecx
jl 0x40329b
mov ecx, dword [ebp + 0x2878]
mov edx, dword [ebp + 0x2874]
and ecx, 0xffff
and edx, 0xffff
shl ecx, 0x10
push 0
push 6
or ecx, edx
push 0
push ecx
push 0xbc5
push esi
call fcn.004022e0
add esp, 0x18
mov ecx, ebp
push 0
push esi
call fcn.004043b0
mov edi, dword [sym.imp.MSVCRT.dll_rand]
call edi
cdq
mov ecx, 0x64
idiv ecx
lea edx, [edx + edx*2 + 0x40e018]
push edx
call edi
cdq
mov ecx, 3
idiv ecx
shl edx, 9
add edx, 0x40f29c
push edx
call edi
cdq
mov ecx, 0x64
idiv ecx
lea edx, [edx + edx*2 + 0x40e018]
push edx
call edi
cdq
mov ecx, 0x64
idiv ecx
lea edx, [edx + edx*2 + 0x40e018]
push edx
call edi
cdq
mov ecx, 0x64
idiv ecx
lea eax, [esp + 0x3c]
lea edx, [edx + edx*2 + 0x40e018]
push edx
push str._s_s_s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push 0
push 0
push 0
push 0xbd6
push esi
call fcn.004022e0
lea ebx, [ebp + 0x2410]
push 0x20
push ebx
push esi
call fcn.00402280
mov eax, dword [ebp + 0x2844]
add esp, 0x40
cmp eax, 9
jl 0x4033d0
mov dword [ebp + 0x2844], 1
jmp 0x4033d7
inc eax
mov dword [ebp + 0x2844], eax
lea ecx, [esp + 0x2c]
test ecx, ecx
je 0x40342a
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x2430]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x400
push ecx
push edx
lea edx, [esp + 0x38]
push edx
call fcn.00401bb0
add esp, 0x10
lea ecx, [ebp + 0x2430]
lea eax, [ebp + 4]
push ecx
mov ecx, dword [ebp + 0x2844]
push ebx
push ecx
push str._d_s_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x403444
mov edx, dword [ebp + 0x2844]
push ebx
lea eax, [ebp + 4]
push edx
push str._d_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edx, dword [ebp + 0x2854]
cmp edx, 0xffffffff
je 0x403486
lea edi, [ebp + 4]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + 4]
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x403486
mov eax, dword [ebp + 0x2854]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp + 0x2854], 0xffffffff
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp + 0x2918]
mov dword [esp + 0x18], 0
mov ecx, eax
lea eax, [ebp + 0x2928]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
test eax, eax
je 0x4035d7
movzx cx, byte [ecx + 0x60]
push 0
push 0
push ecx
push eax
push 0x3eb
push esi
call fcn.004022e0
push 0x20
push ebx
push esi
call fcn.00402280
mov eax, dword [ebp + 0x2844]
add esp, 0x24
cmp eax, 9
jl 0x4034f2
mov dword [ebp + 0x2844], 1
jmp 0x4034f9
inc eax
mov dword [ebp + 0x2844], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403548
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x400
lea eax, [ebp + 0x2430]
push ecx
push eax
push edx
call fcn.00401bb0
mov edx, dword [ebp + 0x2844]
add esp, 0x10
lea eax, [ebp + 0x2430]
push eax
push ebx
push edx
lea eax, [ebp + 4]
push str._d_s_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x403562
mov eax, dword [ebp + 0x2844]
push ebx
push eax
lea eax, [ebp + 4]
push str._d_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edx, dword [ebp + 0x2854]
cmp edx, 0xffffffff
je 0x4035a4
lea edi, [ebp + 4]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + 4]
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x4035a4
mov ecx, dword [ebp + 0x2854]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp + 0x2854], 0xffffffff
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
inc eax
add ecx, 4
add edi, 0x14
cmp eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
jl 0x4034af
mov edx, dword [ebp + 0x2878]
mov eax, dword [ebp + 0x2874]
and edx, 0xffff
and eax, 0xffff
shl edx, 0x10
push 0
push 4
or edx, eax
push 0
push edx
push 0xbc5
push esi
call fcn.004022e0
add esp, 0x18
mov ecx, ebp
push 0
push esi
call fcn.004043b0
mov edi, dword [sym.imp.MSVCRT.dll_rand]
call edi
cdq
mov ecx, 0x64
idiv ecx
lea edx, [edx + edx*2 + 0x40e018]
push edx
call edi
cdq
mov ecx, 0x64
idiv ecx
lea edx, [edx + edx*2 + 0x40e018]
push edx
call edi
cdq
mov ecx, 0x64
idiv ecx
lea edx, [edx + edx*2 + 0x40e018]
push edx
call edi
cdq
mov ecx, 0x64
idiv ecx
lea edx, [edx + edx*2 + 0x40e018]
push edx
call edi
cdq
mov ecx, 3
idiv ecx
shl edx, 9
add edx, 0x40f29c
push edx
lea edx, [esp + 0x40]
push str._s_s_s_s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push 0
push 0
push 0
push 0xbd6
push esi
call fcn.004022e0
push 0x20
push ebx
push esi
call fcn.00402280
mov eax, dword [ebp + 0x2844]
add esp, 0x40
cmp eax, 9
jl 0x4036ba
mov dword [ebp + 0x2844], 1
jmp 0x4036c1
inc eax
mov dword [ebp + 0x2844], eax
lea eax, [esp + 0x2c]
test eax, eax
je 0x403714
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
push 0x400
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ebp + 0x2430]
push ecx
lea ecx, [esp + 0x34]
push edx
push ecx
call fcn.00401bb0
mov edx, dword [ebp + 0x2844]
add esp, 0x10
lea eax, [ebp + 0x2430]
push eax
push ebx
push edx
lea eax, [ebp + 4]
push str._d_s_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x40372e
mov eax, dword [ebp + 0x2844]
push ebx
push eax
lea eax, [ebp + 4]
push str._d_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edx, dword [ebp + 0x2854]
cmp edx, 0xffffffff
je 0x403770
lea edi, [ebp + 4]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + 4]
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x403770
mov ecx, dword [ebp + 0x2854]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp + 0x2854], 0xffffffff
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp + 0x2918]
mov dword [esp + 0x18], 0
mov ecx, eax
lea eax, [ebp + 0x2928]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
test eax, eax
je 0x4038c1
movzx dx, byte [ecx + 0x60]
push 0
push 0
push edx
push eax
push 0x3ec
push esi
call fcn.004022e0
push 0x20
push ebx
push esi
call fcn.00402280
mov eax, dword [ebp + 0x2844]
add esp, 0x24
cmp eax, 9
jl 0x4037dc
mov dword [ebp + 0x2844], 1
jmp 0x4037e3
inc eax
mov dword [ebp + 0x2844], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x403832
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x400
lea eax, [ebp + 0x2430]
push ecx
push eax
push edx
call fcn.00401bb0
add esp, 0x10
lea eax, [ebp + 0x2430]
push eax
mov eax, dword [ebp + 0x2844]
push ebx
push eax
lea eax, [ebp + 4]
push str._d_s_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x40384c
mov ecx, dword [ebp + 0x2844]
push ebx
push ecx
lea eax, [ebp + 4]
push str._d_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edx, dword [ebp + 0x2854]
cmp edx, 0xffffffff
je 0x40388e
lea edi, [ebp + 4]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + 4]
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40388e
mov edx, dword [ebp + 0x2854]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp + 0x2854], 0xffffffff
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
inc eax
add ecx, 4
add edi, 0x14
cmp eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
jl 0x403799
mov eax, dword [ebp + 0x2878]
mov ecx, dword [ebp + 0x2874]
and eax, 0xffff
and ecx, 0xffff
shl eax, 0x10
push 0
push 2
or eax, ecx
push 0
push eax
push 0xbc5
push esi
call fcn.004022e0
add esp, 0x18
mov ecx, ebp
push 0
push esi
call fcn.004043b0
mov edi, dword [sym.imp.MSVCRT.dll_rand]
call edi
cdq
mov ecx, 0x64
idiv ecx
lea edx, [edx + edx*2 + 0x40e018]
push edx
call edi
cdq
mov ecx, 0x64
idiv ecx
lea edx, [edx + edx*2 + 0x40e018]
push edx
call edi
cdq
mov ecx, 0x64
idiv ecx
lea edx, [edx + edx*2 + 0x40e018]
push edx
call edi
cdq
mov ecx, 3
idiv ecx
shl edx, 9
add edx, 0x40f29c
push edx
call edi
cdq
mov ecx, 0x64
idiv ecx
lea eax, [esp + 0x3c]
lea edx, [edx + edx*2 + 0x40e018]
push edx
push str._s_s_s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push 0
push 0
push 0
push 0xbd6
push esi
call fcn.004022e0
push 0x20
push ebx
push esi
call fcn.00402280
mov eax, dword [ebp + 0x2844]
add esp, 0x40
cmp eax, 9
jl 0x4039a4
mov dword [ebp + 0x2844], 1
jmp 0x4039ab
inc eax
mov dword [ebp + 0x2844], eax
lea ecx, [esp + 0x2c]
test ecx, ecx
je 0x4039fe
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x2430]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x400
push ecx
push edx
lea edx, [esp + 0x38]
push edx
call fcn.00401bb0
add esp, 0x10
lea eax, [ebp + 0x2430]
push eax
mov eax, dword [ebp + 0x2844]
push ebx
push eax
lea eax, [ebp + 4]
push str._d_s_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x403a18
mov ecx, dword [ebp + 0x2844]
push ebx
push ecx
lea eax, [ebp + 4]
push str._d_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edx, dword [ebp + 0x2854]
cmp edx, 0xffffffff
je 0x403a5a
lea edi, [ebp + 4]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + 4]
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x403a5a
mov edx, dword [ebp + 0x2854]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp + 0x2854], 0xffffffff
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [ebp + 0x2918]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
lea eax, [ebp + 0x2928]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x403d92
mov ecx, dword [esp + 0x14]
push 0
push 0
movzx dx, byte [ecx + 0x60]
push edx
push eax
push 0x3eb
push esi
call fcn.004022e0
push 0x20
push ebx
push esi
call fcn.00402280
mov eax, dword [ebp + 0x2844]
add esp, 0x24
cmp eax, 9
jl 0x403acc
mov dword [ebp + 0x2844], 1
jmp 0x403ad3
inc eax
mov dword [ebp + 0x2844], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403b22
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x400
lea eax, [ebp + 0x2430]
push ecx
push eax
push edx
call fcn.00401bb0
add esp, 0x10
lea eax, [ebp + 0x2430]
push eax
mov eax, dword [ebp + 0x2844]
push ebx
push eax
lea eax, [ebp + 4]
push str._d_s_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x403b3c
mov ecx, dword [ebp + 0x2844]
push ebx
push ecx
lea eax, [ebp + 4]
push str._d_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov edx, dword [ebp + 0x2854]
cmp edx, 0xffffffff
je 0x403b7e
lea edi, [ebp + 4]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + 4]
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x403b7e
mov edx, dword [ebp + 0x2854]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp + 0x2854], 0xffffffff
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc eax
add edi, 4
add edx, 0x14
cmp eax, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
jl 0x403a81
jmp 0x403d92
push 0x12c
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ebx, [ebp + 0x404]
mov ecx, 0x800
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
push eax
mov eax, dword [ebp + 0x2854]
push 0x1c00
push ebx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
je 0x403da4
mov byte [ebx + esi], 0
mov al, byte [esi + ebp + 0x403]
cmp al, 0x21
je 0x403c2f
mov edx, dword [ebp + 0x2854]
push 0
lea ecx, [esi + ebp + 0x405]
push 0x3ff
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x403da4
add eax, esi
mov byte [eax + ebp + 0x404], 0
push 0x21
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x403d92
lea eax, [ebx + 1]
mov ecx, ebp
push eax
mov byte [esi], 0
call fcn.004044a0
cmp byte [esi + 1], 0x2a
jne 0x403c74
mov ecx, dword [ebp + 0x2854]
push 0
push 1
push 0x40e71c
push ecx
call dword [sym.imp.WS2_32.dll_send]
inc esi
mov al, byte [esi + 1]
inc esi
cmp al, 0x23
jne 0x403c82
mov ebx, esi
mov dword [esp + 0x10], ebx
mov eax, dword [ebp + 0x285c]
test eax, eax
je 0x403d7c
mov eax, dword [ebp + 0x2858]
test eax, eax
je 0x403d7c
push 0
push 0
push 0
lea esi, [ebp + 0x2404]
push eax
push 0x3f2
push esi
call fcn.004022e0
lea edi, [ebp + 0x2410]
push 0x20
push edi
push esi
call fcn.00402280
mov eax, dword [ebp + 0x2844]
add esp, 0x24
cmp eax, 9
jl 0x403cdf
mov dword [ebp + 0x2844], 1
jmp 0x403ce6
inc eax
mov dword [ebp + 0x2844], eax
mov edx, dword [ebp + 0x2844]
push edi
lea ebx, [ebp + 4]
push edx
push str._d_s_
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [ebp + 0x2854]
add esp, 0x10
cmp edx, 0xffffffff
je 0x403d3e
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x403d3e
mov eax, dword [ebp + 0x2854]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp + 0x2854], 0xffffffff
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [ebp + 0x2858]
push 0
push 0
push 0
push ecx
push 0x3f2
push esi
call fcn.004022e0
add esp, 0x18
mov ecx, ebp
push 0
push esi
call fcn.004043b0
mov ebx, dword [esp + 0x10]
mov dword [ebp + 0x285c], 0
push 0x21
push ebx
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x403c49
mov eax, dword [0x40f89c]
test eax, eax
je 0x403189
jmp 0x403f2c
mov eax, dword [0x40f89c]
test eax, eax
jne 0x403f2c
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [esp + 0x10], 5
push 0x1388
call ebx
lea edi, [ebp + 0x289a]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x2844], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov edx, ecx
mov esi, edi
lea edi, [ebp + 0x2830]
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x28ac]
mov dword [ebp + 0x2840], eax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp + 0x2854], eax
je 0x403e6b
mov dx, word [ebp + 0x2840]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
push edx
mov dword [esp + 0x24], ecx
mov word [esp + 0x20], 2
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
lea eax, [ebp + 0x2830]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 0x2854]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
push 0x1388
call ebx
mov ecx, ebp
call fcn.004029c0
test eax, eax
je 0x403f0e
push 0x1f4
call ebx
lea edx, [ebp + 0x28b0]
mov ecx, ebp
push edx
call fcn.00402d90
test eax, eax
je 0x403f0e
mov eax, dword [ebp + 0x2854]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
push eax
call edi
push 0x7d0
call ebx
mov ecx, ebp
call fcn.00401db0
test eax, eax
je 0x403f14
push 0x1f4
call ebx
mov ecx, dword [ebp + 0x2860]
push ecx
mov ecx, ebp
call fcn.00401e40
test eax, eax
je 0x403f14
push 0x7d0
call ebx
lea esi, [ebp + 0x287c]
mov ecx, ebp
push esi
call fcn.00402670
mov edx, dword [ebp + 0x2854]
push edx
call edi
push 0x1f4
call ebx
mov ecx, ebp
call fcn.00401db0
test eax, eax
je 0x403f14
push esi
mov ecx, ebp
call fcn.00403070
jmp 0x403f14
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 0x2854]
push eax
call edi
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x403dbf
mov eax, dword [ebp + 0x2988]
test eax, eax
je 0x403f4c
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov ecx, dword [ebp + 0x2988]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x81c
ret 4