Function at 0x40bb45
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 4], 0
cmp dword [0x7405cd], 1
jne 0x40bd48
push 0x7405f9
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
inc dword [0x7405e1]
push 0x80000301
push 0
push dword [0x7405bd]
push 1
mov ebx, 0x168
call fcn.00481860
add esp, 0x10
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [0x7405b5]
push 1
mov ebx, 0x168
call fcn.00481860
add esp, 0x10
mov dword [ebp - 0xc], eax
fild dword [0x7405dd]
fstp qword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0040c1a0
mov dword [ebp - 0x18], eax
fild dword [0x74060d]
fstp qword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.0040c1a0
mov dword [ebp - 0x24], eax
fild dword [0x7405dd]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fild dword [0x7405e1]
fstp qword [ebp - 0x34]
fdiv qword [ebp - 0x34]
fstp qword [ebp - 0x3c]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.0040c1a0
mov dword [ebp - 0x40], eax
push 0x80000301
push 0
push dword [0x7405e1]
push 1
mov ebx, 0x168
call fcn.00481860
add esp, 0x10
mov dword [ebp - 0x44], eax
push 0x4b5e20
push dword [ebp - 0x44]
push 0x4b5e23
push dword [ebp - 0x40]
push 0x4b5e2e
push dword [ebp - 0x24]
push 0x4b5ceb
push dword [ebp - 0x18]
push 0x4b5e37
push dword [ebp - 0xc]
push 0x4b5ceb
push dword [ebp - 8]
push 0x4b5e40
mov ecx, 0xd
call fcn.0040106b
add esp, 0x34
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40bc89
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40bc99
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40bca9
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40bcb9
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x40bcc9
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x40bcd9
push ebx
call fcn.0047cbd4
add esp, 4
mov dword [ebp - 0x4c], 0
push 0
push dword [ebp - 0x4c]
mov dword [ebp - 0x50], 0
push 0
push dword [ebp - 0x50]
mov dword [ebp - 0x54], 0
push 0
push dword [ebp - 0x54]
push 1
lea eax, [ebp - 0x48]
push eax
push 0x74057d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xac]
mov ebx, eax
test ebx, ebx
je 0x40bd24
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [ebp - 0x48]
test ebx, ebx
je 0x40bd34
push ebx
call fcn.0047cbd4
add esp, 4
push 0x7405f9
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
jmp 0x40c19a
cmp dword [0x7405cd], 2
jne 0x40bd5a
jmp 0x40c19a
cmp dword [0x7405cd], 3
jne 0x40bd6c
jmp 0x40c19a
cmp dword [0x7405cd], 4
jne 0x40bf79
push 0x7405f9
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
inc dword [0x7405e5]
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
push 0x80ff
call fcn.0040300b
mov dword [ebp - 0xc], eax
push 1
push dword [ebp - 0xc]
push 0x74057d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xb4]
push 0x80000301
push 0
push dword [0x7405d9]
push 1
mov ebx, 0x168
call fcn.00481860
add esp, 0x10
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [0x7405a9]
push 1
mov ebx, 0x168
call fcn.00481860
add esp, 0x10
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push dword [0x7405e5]
push 1
mov ebx, 0x168
call fcn.00481860
add esp, 0x10
mov dword [ebp - 0x10], eax
push 0x4b5e20
push dword [ebp - 0x10]
push 0x4b5e23
push dword [ebp - 0xc]
push 0x4b5ceb
push dword [ebp - 8]
push 0x4b5e46
mov ecx, 7
call fcn.0040106b
add esp, 0x1c
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40be61
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40be71
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40be81
push ebx
call fcn.0047cbd4
add esp, 4
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
lea eax, [ebp - 0x14]
push eax
push 0x74057d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xac]
mov ebx, eax
test ebx, ebx
je 0x40becc
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40bedc
push ebx
call fcn.0047cbd4
add esp, 4
fild dword [0x7405d9]
fstp qword [ebp - 0xc]
fld qword [ebp - 0xc]
fild dword [0x7405a9]
fstp qword [ebp - 0x14]
fdiv qword [ebp - 0x14]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x4b5a21]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00402256
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0
fild dword [ebp - 4]
fstp qword [ebp - 0xc]
push 0x80000601
push dword [ebp - 8]
push dword [ebp - 0xc]
push 2
mov ebx, 0x68
call fcn.004824b0
add esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
fld qword [ebp - 0x1c]
call fcn.00402256
mov dword [ebp - 4], eax
push 1
push dword [ebp - 4]
push 0x740581
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xb0]
push 0x7405f9
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
jmp 0x40c19a
cmp dword [0x7405cd], 5
jne 0x40bf8b
jmp 0x40c19a
cmp dword [0x7405cd], 0xf
jne 0x40c08e
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
push 0xff00
call fcn.0040300b
mov dword [ebp - 0xc], eax
push 1
push dword [ebp - 0xc]
push 0x74057d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xb4]
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
mov eax, 0x4b5e5c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x74057d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xac]
mov ebx, eax
test ebx, ebx
je 0x40c01b
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40c02b
push ebx
call fcn.0047cbd4
add esp, 4
mov dword [0x7405cd], 0x10
push 0x80000301
push 0
push 0x7405cd
push 1
mov ebx, 0xc
mov eax, 0x491cb0
call fcn.00481600
add esp, 0x10
push 0
push 0
push 0
push 0x80000301
push 0
push eax
push ioctlsocket
push 0
push 0x40d40f
push 3
mov ebx, 0
mov eax, 0x4923b0
call fcn.00481600
add esp, 0x28
jmp 0x40c19a
cmp dword [0x7405cd], 0x11
jne 0x40c19a
mov dword [0x7405cd], 0
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
push 1
mov eax, 0x4b5e80
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x74057d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xac]
mov ebx, eax
test ebx, ebx
je 0x40c0f8
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40c108
push ebx
call fcn.0047cbd4
add esp, 4
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
push 0xff00
call fcn.0040300b
mov dword [ebp - 0xc], eax
push 1
push dword [ebp - 0xc]
push 0x74057d
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xb4]
mov dword [ebp - 8], esp
push 0
push 0
push 0
push 0x40da13
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40c175
push 6
call fcn.0047cbda
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40c19a
push 6
call fcn.0047cbda
add esp, 4
mov esp, ebp
pop ebp
ret 0x10