Function at 0x1001c160
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
push getsockname
push 0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
jne 0x1001c1bd
mov eax, 0x1003f200
push eax
push 1
mov ebx, 0x130
call fcn.1003a160
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x104
jle 0x1001c1ea
mov eax, 0
jmp 0x1001c5c5
cmp dword [ebp + 8], 0
je 0x1001c237
cmp dword [ebp + 0xc], 0
je 0x1001c237
push getsockname
push 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
jne 0x1001c213
mov eax, 0x1003f200
push eax
push 1
mov ebx, 0x24c
call fcn.1003a420
add esp, 0x10
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1001c237
xor eax, eax
jmp 0x1001c23c
mov eax, 1
test eax, eax
je 0x1001c24e
mov eax, 0
jmp 0x1001c5c5
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10003378
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001c270
mov eax, 0
jmp 0x1001c5c5
push dword [ebp - 4]
call fcn.10003471
test eax, eax
je 0x1001c28a
mov eax, 0
jmp 0x1001c5c5
push 0x2c
push dword [ebp - 4]
call fcn.10001a45
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 3
je 0x1001c2ae
mov eax, 0
jmp 0x1001c5c5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1001c5dd
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x1001c2d2
mov eax, 0
jmp 0x1001c5c5
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
push 1
push 3
push 1
push 1
push dword [ebp + 0x10]
call fcn.1001b2b7
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1001c30b
mov eax, 0
jmp 0x1001c5c5
push dword [ebp - 0x10]
call fcn.1001c91f
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x18], 0
jne 0x1001c323
cmp dword [ebp - 0x14], 0
jne 0x1001c333
mov eax, 0
jmp 0x1001c5c5
push 0x140
push dword [ebp + 8]
call fcn.10009b7a
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1001c35f
push dword [ebp - 8]
call fcn.1001d18d
mov eax, 0
jmp 0x1001c5c5
push dword [ebp - 0x1c]
push dword [ebp - 0xc]
call fcn.100018c8
push dword [ebp - 0x10]
push 0x128
push dword [ebp - 0x1c]
call fcn.1000328c
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0x10
push dword [ebp - 0x1c]
call fcn.1000ec0f
push dword [ebp + 8]
push 0
push dword [ebp - 0x1c]
call fcn.1000328c
push dword [ebp + 0xc]
push 4
push dword [ebp - 0x1c]
call fcn.1000328c
push 0
push 0xc
push dword [ebp - 0x1c]
call fcn.1000328c
push dword [ebp + 0x18]
push 0x13c
push dword [ebp - 0x1c]
call fcn.1000328c
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call fcn.1001d324
push eax
push 0x134
push dword [ebp - 0x1c]
call fcn.1000328c
push 0x1003f200
mov ebx, dword [ebp + 0x1c]
push dword [ebx]
call fcn.1000101a
add esp, 8
cmp eax, 0
jne 0x1001c46d
push 1
mov eax, 0x1003f200
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, 0x10043630
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x10]
call fcn.1001daf9
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x1001c440
push ebx
call fcn.10038d1e
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x1001c450
push ebx
call fcn.10038d1e
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1001c464
push ebx
call fcn.10038d1e
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
jmp 0x1001c4a0
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x1001c48b
push eax
mov ebx, eax
call fcn.10002543
inc eax
push eax
call fcn.10038d18
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1001c49c
push ebx
call fcn.10038d1e
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push getsockname
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x1001c4b3
mov eax, 0x1003f200
push eax
push 1
mov ebx, 0x130
call fcn.1003a160
add esp, 0x10
push eax
push 0x20
push dword [ebp - 0x1c]
call fcn.1000328c
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x1003f24b]
fstp qword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
call fcn.1001b907
mov dword [ebp - 0x38], eax
push 0x20
push dword [ebp - 0x1c]
call fcn.10001a45
push eax
push dword [ebp - 0x38]
fld qword [ebp - 0x34]
call fcn.100010b7
push eax
call fcn.10001688
cmp dword [ebp + 0x14], 0
jle 0x1001c530
push dword [ebp + 0x14]
push 0x130
push dword [ebp - 0x1c]
call fcn.1000328c
jmp 0x1001c542
push 0
push 0x130
push dword [ebp - 0x1c]
call fcn.1000328c
mov dword [ebp - 0x28], esp
mov eax, 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push 0
push dword [ebp - 8]
push 0x10021e72
push 0x200
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x1001c58e
push 0x7ba
push 0x40209fa
push 6
call fcn.10038d0c
add esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], esp
push dword [ebp - 0x24]
xor eax, eax
call dword [0x10043f35]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x1001c5bd
push 0x834
push 0x40209fa
push 6
call fcn.10038d0c
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x1001c5c5
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x1001c5d6
push ebx
call fcn.10038d1e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18