Function at 0x42179c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [0x4badbc], 0
jne 0x4218d8
push htons
push 0
push 0x482fba
push 1
mov ebx, 4
mov eax, 0x44d300
call fcn.00447670
add esp, 0x10
mov dword [ebp - 0xc], eax
push htons
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4217f9
mov eax, 0x4798e6
push eax
push 1
mov ebx, 0x168
call fcn.00447ec0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x42181f
push ebx
call fcn.00446bb5
add esp, 4
push htons
push 0
push 0x482fde
push 1
mov ebx, 4
mov eax, 0x44d300
call fcn.00447670
add esp, 0x10
mov dword [ebp - 0x14], eax
push htons
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x421858
mov eax, 0x4798e6
push eax
push 1
mov ebx, 0x168
call fcn.00447ec0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x42187e
push ebx
call fcn.00446bb5
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.USER32.dll_FindWindowA]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4218ad
push 0x1f9
push 0x4010007
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4218c0
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4218d0
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [0x4badbc], eax
cmp dword [0x4badbc], 0
je 0x42191e
mov dword [ebp - 0xc], esp
push 0x4badc0
push dword [0x4badbc]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x421919
push 0x333
push 0x4010007
push 6
call fcn.00446bbb
add esp, 0xc
jmp 0x421941
push 0x80000301
push 0
push 1
push 1
mov ebx, 0x67c
call fcn.00448870
add esp, 0x10
jmp 0x4217b3
mov dword [0x4badc4], 0x40000000
mov dword [0x4badc8], 1
push 0
mov ebx, 4
mov eax, 0x44cee0
call fcn.00447670
add esp, 4
mov dword [0x4badcc], eax
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x4243c4
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4219bf
push 0x4b9
push 0x4010007
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4219ee
push 0x4b9
push 0x4010007
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0xc], esp
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0x424eb3
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x421a3c
push 0x511
push 0x4010007
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x421a6b
push 0x511
push 0x4010007
push 6
call fcn.00446bbb
add esp, 0xc
push 0
mov ebx, 0x2d4
call fcn.0044a4a0
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.00421cbc
mov dword [ebp - 0x10], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul dword [ebp - 0x10]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.00401b87
mov dword [ebp - 4], eax
push 0
mov ebx, 0x2d8
call fcn.0044a4b0
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.00421cbc
mov dword [ebp - 0x10], eax
fild dword [ebp - 0xc]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul dword [ebp - 0x10]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.00401b87
mov dword [ebp - 8], eax
push htons
push 0
push 0x482fde
push 1
mov ebx, 4
mov eax, 0x44d300
call fcn.00447670
add esp, 0x10
mov dword [ebp - 0xc], eax
push htons
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x421b12
mov eax, 0x4798e6
push eax
push 1
mov ebx, 0x168
call fcn.00447ec0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x421b38
push ebx
call fcn.00446bb5
add esp, 4
push htons
push 0
push 0x482fba
push 1
mov ebx, 4
mov eax, 0x44d300
call fcn.00447670
add esp, 0x10
mov dword [ebp - 0x14], eax
push htons
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x421b71
mov eax, 0x4798e6
push eax
push 1
mov ebx, 0x168
call fcn.00447ec0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x421b97
push ebx
call fcn.00446bb5
add esp, 4
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [0x4badbc]
call fcn.00421da5
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x421bd5
push ebx
call fcn.00446bb5
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x421be5
push ebx
call fcn.00446bb5
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [0x4badd0], eax
push 0x42b55a
call fcn.004230fb
mov dword [ebp - 0xc], esp
push 0x11
push dword [0x4badd0]
xor eax, eax
call dword [0x4bb008]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x421c2b
push 0x92a
push 0x4010007
push 6
call fcn.00446bbb
add esp, 0xc
mov dword [ebp - 0xc], esp
push 1
push dword [0x4badd0]
xor eax, eax
call dword [0x4bb008]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x421c5f
push 0x94d
push 0x4010007
push 6
call fcn.00446bbb
add esp, 0xc
push dword [0x4badd0]
push 0x4bad90
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x114]
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x421ca0
push 0x9b9
push 0x4010007
push 6
call fcn.00446bbb
add esp, 0xc
push eax
push 0x4bad90
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x114]
call fcn.0042357f
mov esp, ebp
pop ebp
ret