Function at 0x406f10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push esi
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0xc], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov edx, 1
test edx, edx
je 0x4072d9
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
push eax
call fcn.00401e90
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406fa0
jmp 0x406f71
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00401fb0
add esp, 8
test eax, eax
jne 0x406fb6
jmp 0x406f71
mov eax, 1
test eax, eax
je 0x4072bd
push 0x10
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00405f20
add esp, 0xc
test eax, eax
jne 0x406fde
jmp 0x4072bd
mov eax, 8
imul ecx, eax, 0
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [ebp + edx - 0x50], 1
jne 0x40700f
mov eax, dword [ebp - 0x14]
cmp dword [ebp + eax - 0x4c], 0
jne 0x40700f
push 0x10
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00406030
add esp, 0xc
mov eax, 8
imul ecx, eax, 0
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp dword [ebp + edx - 0x50], 4
jne 0x40702e
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax - 0x4c], 0
je 0x40704d
mov ecx, 8
imul edx, ecx, 0
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [ebp + eax - 0x50], 8
jne 0x4070b3
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp + ecx - 0x4c], 0
jne 0x4070b3
push 8
push 0
mov edx, dword [0x4263d0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [edx + ecx], eax
mov ecx, 8
imul edx, ecx, 0
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + edx - 0x50]
mov edx, dword [ebp - 0xc]
mov dword [edx + eax], ecx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x4012e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, 8
imul ecx, eax, 0
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp dword [ebp + edx - 0x50], 0x80
jne 0x4070fc
mov eax, dword [ebp - 0x20]
cmp dword [ebp + eax - 0x4c], 0
jne 0x4070fc
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
push 0x403d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, 8
imul edx, ecx, 0
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp dword [ebp + eax - 0x50], 0x6b
jne 0x4071ba
mov ecx, dword [ebp - 0x24]
cmp dword [ebp + ecx - 0x4c], 0
jne 0x4071ba
xor edx, edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], edx
push 0x20
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00405f20
add esp, 0xc
test eax, eax
jne 0x407158
jmp 0x4072bd
push 4
push 0
mov edx, dword [0x4263d0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x70]
mov dword [edx + ecx], eax
lea ecx, [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0x70]
push edx
push 0x406e60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
nop
mov eax, 8
imul ecx, eax, 0
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
cmp dword [ebp + edx - 0x50], 0x59
jne 0x407254
mov eax, dword [ebp - 0x28]
cmp dword [ebp + eax - 0x4c], 0
jne 0x407254
push 0x10
push 0
mov ecx, dword [0x4263d0]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cdq
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x38]
mov ecx, 8
imul ecx, ecx, 0
mov esi, dword [ebp + edx - 0x50]
mov edx, dword [ebp + edx - 0x4c]
mov dword [eax + ecx], esi
mov dword [eax + ecx + 4], edx
mov ecx, dword [ebp - 0x38]
mov esi, 8
shl esi, 0
mov eax, dword [ebp + 8]
cdq
mov dword [ecx + esi], eax
mov dword [ecx + esi + 4], edx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x38]
push eax
push 0x406820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp + eax - 0x50]
and ecx, 0x1000
mov edx, dword [ebp + eax - 0x4c]
and edx, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
je 0x407290
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp + edx - 0x50]
push eax
call fcn.004072e0
add esp, 4
mov ecx, 8
imul edx, ecx, 0
xor eax, eax
xor ecx, ecx
mov dword [ebp + edx - 0x50], eax
mov dword [ebp + edx - 0x4c], ecx
mov edx, 8
shl edx, 0
xor eax, eax
xor ecx, ecx
mov dword [ebp + edx - 0x50], eax
mov dword [ebp + edx - 0x4c], ecx
jmp 0x406fb6
push 2
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
nop
jmp 0x406f71
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret