Function at 0x10037df0
Capabilities:
Create tcp socket
Create thread
Create udp socket
Send data
Send data on socket
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [case.0x100be6e1.80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x103c00a0], 0xffffffff
je 0x10037e1c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
push 0x10c
push 0
push 0x103ca8c4
mov dword [0x103c9df0], 0
call fcn.10296750
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [0x103ca8c0], eax
mov eax, dword [ebp + 0xc]
mov dword [0x103ca8bc], eax
mov eax, dword [ebp + 0x10]
mov dword [0x103ca9e4], eax
mov eax, dword [ebp + 0x14]
mov dword [0x103ca9e8], eax
mov eax, dword [0x103c9158]
mov dword [0x103ca9d0], eax
mov eax, dword [0x103c915c]
mov dword [0x103ca9d4], eax
mov eax, dword [ebp + 0x18]
push 0
movq qword [0x103ca9dc], xmm0
movq qword [0x103ca9ec], xmm0
mov dword [0x103ca9d8], eax
mov dword [0x103ca9f4], eax
mov dword [0x103caa14], 0
mov dword [0x103caa10], 0
mov dword [0x103caa0c], 0
mov dword [0x103caa08], 0
mov dword [0x103caa04], 0
mov dword [0x103caa00], 0
mov dword [0x103ca9fc], 0
mov dword [0x103ca9f8], 0
call fcn.100bfb60
add esp, 0x10
cmp dword [0x103ca8c0], 0
jne 0x10037efc
push dword [0x103c9de0]
call fcn.1003daa0
add esp, 4
cmp dword [0x103c009c], 0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jle 0x10037f5a
mov eax, dword [0x103caa18]
test eax, eax
je 0x10037f5a
cmp eax, 0xffffffff
je 0x10037f5a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x103caa18]
test eax, eax
jle 0x10037f50
mov esi, dword [0x103c009c]
sub esi, eax
js 0x10037f50
push 1
mov ecx, 0x103c8e30
call fcn.100d2b35
push esi
call edi
push 0xffffffffffffffff
mov ecx, 0x103c8e30
call fcn.100d2b35
mov dword [0x103caa18], 0
push 0x103c94c8
lea eax, [ebp - 0x84]
push str.Connecting_sockets_at__s
push eax
call fcn.100029e0
push 0
lea eax, [ebp - 0x84]
push eax
push 0
push 0x14
push 0
call fcn.10044560
mov esi, dword [sym.imp.WS2_32.dll_socket]
add esp, 0x20
push 6
push 1
push 2
call esi
mov dword [0x103c00a0], eax
cmp eax, 0xffffffff
jne 0x10037fcd
push 0
push str.s1_create
push 1
push 0x14
push 4
call fcn.10044560
push 0
call fcn.100bfb80
add esp, 0x18
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call esi
mov dword [0x103c00a4], eax
cmp eax, 0xffffffff
jne 0x10037fe8
push 0
push str.s3_create
jmp 0x10038013
cmp dword [0x103c9a64], 0
je 0x1003803f
cmp dword [0x103c9a1c], 6
jl 0x1003803f
push 6
push 1
push 2
call esi
mov dword [0x103c00a8], eax
cmp eax, 0xffffffff
jne 0x1003803f
push 0
push str.s4_create
push 3
push 0x14
push 4
call fcn.10044560
call fcn.10044160
push 0
call fcn.100bfb80
add esp, 0x18
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
push ebx
push 1
mov ecx, 0x103c8e30
mov dword [ebp - 0x10c], 0xffffffff
call fcn.100d2b35
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x110]
push eax
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x10044220
push 0
push 0
call ebx
mov esi, eax
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100380a9
call fcn.10044160
push 0x32
call edi
push 3
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
or eax, 0xffffffff
mov dword [ebp - 0x10c], eax
jmp 0x100380af
mov eax, dword [ebp - 0x10c]
xor edi, edi
cmp eax, 0x274d
jne 0x10038139
nop dword [eax]
mov dword [ebp - 0x114], edi
inc edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x110]
push eax
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x10044220
push 0
push 0
call ebx
mov esi, eax
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10038119
cmp dword [ebp - 0x114], 4
jge 0x10038119
cmp dword [ebp - 0x10c], 0x274d
je 0x100380c0
jmp 0x10038139
call fcn.10044160
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 3
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 0x10c], 0xffffffff
push 0xffffffffffffffff
mov ecx, 0x103c8e30
call fcn.100d2b35
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x103ca8a0], 0
jne 0x10038183
push 0
push 0
push 0
push 0x1003a480
push 0
push 0
mov dword [0x103ca8a0], 1
call ebx
mov dword [0x103c9a6c], eax
push 0xffffffffffffffff
mov ecx, 0x103c8e30
call fcn.100d2b35
cmp dword [ebp - 0x10c], 0
je 0x1003820d
call fcn.10044160
mov eax, dword [ebp - 0x10c]
cmp eax, 0xffffffff
jne 0x100381af
push 0x274c
jmp 0x100381b0
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 0x110]
sub eax, 1
je 0x100381d9
sub eax, 1
je 0x100381d2
mov eax, 2
mov ecx, str.Cant_connect_detectors_sockets
jmp 0x100381e3
mov ecx, str.s3_connect
jmp 0x100381de
mov ecx, str.s1_s2_connect
mov eax, 4
push 0
push ecx
push 1
push 0x14
push eax
call fcn.10044560
push 0
call fcn.100bfb80
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
mov eax, dword [0x103caa18]
or ecx, 0xffffffff
cmp dword [0x103c009c], 0
cmovne eax, ecx
mov dword [0x103caa18], eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x1003a6f0
push 0
push 0
call ebx
cmp dword [0x103c00a4], 0xffffffff
mov dword [0x103ca8b0], eax
je 0x10038260
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x1003d030
push 0
push 0
call ebx
jmp 0x10038262
xor eax, eax
cmp dword [0x103c9a64], 0
mov dword [0x103ca8b4], eax
je 0x10038294
cmp dword [0x103c9a1c], 6
jl 0x10038294
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x1003a2f0
push 0
push 0
call ebx
mov dword [0x103ca8b8], eax
push 0
push str.sockets_creation_OK
push 0
push 0x14
push 0
call fcn.10044560
lea eax, [ebp - 0x11c]
push eax
call fcn.102bda51
lea eax, [ebp - 0x11c]
push eax
call fcn.102bd105
push 0x80
mov esi, eax
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.10296750
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x10002
push eax
mov eax, dword [esi + 0x10]
inc eax
push eax
call fcn.10044040
lea eax, [ebp - 0x100]
push eax
push dword [esi + 0xc]
call fcn.10044040
lea eax, [ebp - 0xfc]
push eax
push dword [esi + 8]
call fcn.10044040
add esp, 0x40
lea eax, [ebp - 0xf8]
push eax
push dword [esi + 4]
call fcn.10044040
lea eax, [ebp - 0xf4]
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
call fcn.10044040
lea eax, [ebp - 0xf0]
push eax
push dword [esi]
call fcn.10044040
add esp, 0x18
lea eax, [ebp - 0x108]
push 0
push 0x84
push eax
push dword [0x103c00a0]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1003838b
push 0
push str.s1_send_cmd_aux_set_time
push 1
push 0x14
push 4
call fcn.10044560
add esp, 0x14
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10291e04
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x103ca8c0
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.10291e04
mov esp, ebp
pop ebp
ret