Function at 0x416145
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
cmp dword [ebp + 8], 0
je 0x4161b5
push 8
push dword [ebp + 8]
call fcn.00416a97
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4161b5
xor eax, eax
jmp 0x4161ba
mov eax, 1
test eax, eax
je 0x4161cc
mov eax, 0
jmp 0x416a91
cmp dword [ebp + 0x14], 3
je 0x41620c
cmp dword [ebp + 0x14], 2
je 0x41620c
cmp dword [ebp + 0x14], 1
je 0x41620c
cmp dword [ebp + 0x14], 9
je 0x41620c
cmp dword [ebp + 0x14], 7
je 0x41620c
cmp dword [ebp + 0x14], 5
je 0x41620c
xor eax, eax
jmp 0x416211
mov eax, 1
test eax, eax
je 0x41628f
fild dword [ebp + 0x10]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x62a256]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x62a25e]
fstp qword [ebp - 0x3c]
mov dword [ebp - 0x40], esp
fld qword [ebp - 0x3c]
call fcn.00401809
push eax
push 0x40
mov eax, 0x25
call sub.Kernel32.dll_LocalAlloc
cmp dword [ebp - 0x40], esp
je 0x41626e
push 0x2a0
push 0x405143d
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 4], eax
push 0
push 4
push dword [ebp - 4]
call fcn.00416ab7
mov dword [ebp + 0x14], 3
jmp 0x4163e7
cmp dword [ebp + 0x14], 6
je 0x4162b1
cmp dword [ebp + 0x14], 8
je 0x4162b1
cmp dword [ebp + 0x14], 4
je 0x4162b1
xor eax, eax
jmp 0x4162b6
mov eax, 1
test eax, eax
je 0x416349
fild dword [ebp + 0x10]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x62a256]
fstp qword [ebp - 0x34]
fild dword [ebp + 0x10]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fmul qword [0x62a24e]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x34]
fadd qword [ebp - 0x44]
fadd qword [0x62a25e]
fstp qword [ebp - 0x4c]
mov dword [ebp - 0x50], esp
fld qword [ebp - 0x4c]
call fcn.00401809
push eax
push 0x40
mov eax, 0x25
call sub.Kernel32.dll_LocalAlloc
cmp dword [ebp - 0x50], esp
je 0x416328
push 0x424
push 0x405143d
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 4], eax
push 0
push 4
push dword [ebp - 4]
call fcn.00416ab7
mov dword [ebp + 0x14], 4
jmp 0x4163e7
cmp dword [ebp + 0x14], 0xa
je 0x416361
cmp dword [ebp + 0x14], 0xb
je 0x416361
xor eax, eax
jmp 0x416366
mov eax, 1
test eax, eax
je 0x4163dd
fild dword [ebp + 0x10]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x62a256]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x62a25e]
fstp qword [ebp - 0x3c]
mov dword [ebp - 0x40], esp
fld qword [ebp - 0x3c]
call fcn.00401809
push eax
push 0x40
mov eax, 0x25
call sub.Kernel32.dll_LocalAlloc
cmp dword [ebp - 0x40], esp
je 0x4163c3
push 0x54b
push 0x405143d
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 4], eax
push 1
push 4
push dword [ebp - 4]
call fcn.00416ab7
jmp 0x4163e7
mov eax, 0
jmp 0x416a91
push 8
push dword [ebp + 8]
call fcn.00416a97
push eax
push 8
push dword [ebp - 4]
call fcn.00416ab7
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push eax
lea eax, [ebp - 8]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x41695c
fild dword [ebp - 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x34]
fadd qword [ebp - 0x34]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fsub qword [0x73e4d5]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fmul qword [0x62a256]
fstp qword [ebp - 0x4c]
fld qword [ebp - 0x4c]
fsub qword [0x62a24e]
fstp qword [ebp - 0x54]
fld qword [ebp - 0x54]
call fcn.00401809
mov dword [ebp - 0xc], eax
fild dword [ebp + 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x34]
fadd qword [ebp - 0x34]
fadd qword [0x62a24e]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
call fcn.00401809
push eax
call fcn.00416add
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x41649b
jmp 0x41695c
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00416a97
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x14], 3
jne 0x416529
fild dword [ebp - 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x62a256]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x62a24e]
fstp qword [ebp - 0x3c]
push 3
fld qword [ebp - 0x3c]
call fcn.00401809
push eax
push dword [ebp - 4]
call fcn.00416ab7
fild dword [ebp - 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x62a256]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x62a256]
fstp qword [ebp - 0x3c]
push 0
push dword [ebp - 0x10]
call fcn.00416a97
push eax
fld qword [ebp - 0x3c]
call fcn.00401809
push eax
push dword [ebp - 4]
call fcn.00416ab7
jmp 0x416954
cmp dword [ebp + 0x14], 4
jne 0x4165ef
fild dword [ebp - 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x62a266]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00401809
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [0x62a24e]
fstp qword [ebp - 0x34]
push 4
fld qword [ebp - 0x34]
call fcn.00401809
push eax
push dword [ebp - 4]
call fcn.00416ab7
push 0
push dword [ebp - 0x10]
call fcn.00416a97
push eax
push dword [ebp - 0x14]
push dword [ebp - 4]
call fcn.00416ab7
fild dword [ebp - 0x14]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x62a24e]
fstp qword [ebp - 0x34]
push 4
fld qword [ebp - 0x34]
call fcn.00401809
push eax
push dword [ebp - 4]
call fcn.00416ab7
fild dword [ebp - 0x14]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x62a256]
fstp qword [ebp - 0x34]
push 4
push dword [ebp - 0x10]
call fcn.00416a97
push eax
fld qword [ebp - 0x34]
call fcn.00401809
push eax
push dword [ebp - 4]
call fcn.00416ab7
jmp 0x416954
push 0
push dword [ebp - 0x10]
call fcn.00416a97
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x416676
fild dword [ebp - 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x62a256]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x62a24e]
fstp qword [ebp - 0x3c]
push 3
fld qword [ebp - 0x3c]
call fcn.00401809
push eax
push dword [ebp - 4]
call fcn.00416ab7
fild dword [ebp - 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x62a256]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x62a256]
fstp qword [ebp - 0x3c]
push 0
fld qword [ebp - 0x3c]
call fcn.00401809
push eax
push dword [ebp - 4]
call fcn.00416ab7
jmp 0x416954
fild dword [ebp - 0x10]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fsub qword [0x62a256]
fstp qword [ebp - 0x34]
push 0
fld qword [ebp - 0x34]
call fcn.00401809
push eax
call fcn.00416a97
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 1
jne 0x4166ac
sub dword [ebp - 0x10], 8
push 0
push dword [ebp - 0x10]
call fcn.00416a97
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jne 0x416841
fild dword [ebp - 0x10]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x62a24e]
fstp qword [ebp - 0x34]
push 0
fld qword [ebp - 0x34]
call fcn.00401809
push eax
call fcn.00416a97
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x62a256]
fstp qword [ebp - 0x34]
mov dword [ebp - 0x38], esp
fld qword [ebp - 0x34]
call fcn.00401809
push eax
push 0x40
mov eax, 0x25
call sub.Kernel32.dll_LocalAlloc
cmp dword [ebp - 0x38], esp
je 0x416737
push 0x12ad
push 0x405143d
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x1c], eax
push 1
push 0
push dword [ebp - 0x1c]
call fcn.00416ab7
push dword [ebp - 0x18]
push 4
push dword [ebp - 0x1c]
call fcn.00416ab7
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x62a256]
fstp qword [ebp - 0x34]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x3c]
fld qword [ebp - 0x3c]
fadd qword [0x62a256]
fstp qword [ebp - 0x44]
mov dword [ebp - 0x48], esp
push dword [ebp - 0x18]
fld qword [ebp - 0x44]
call fcn.00401809
push eax
fld qword [ebp - 0x34]
call fcn.00401809
push eax
mov eax, 0x2b
call sub.Kernel32.dll_RtlMoveMemory
cmp dword [ebp - 0x48], esp
je 0x4167be
push 0x135d
push 0x405143d
push 6
call fcn.0042af28
add esp, 0xc
fild dword [ebp - 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x62a256]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x62a24e]
fstp qword [ebp - 0x3c]
push 0xb
fld qword [ebp - 0x3c]
call fcn.00401809
push eax
push dword [ebp - 4]
call fcn.00416ab7
fild dword [ebp - 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x62a256]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x62a256]
fstp qword [ebp - 0x3c]
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x44]
fld qword [ebp - 0x44]
fadd qword [0x62a256]
fstp qword [ebp - 0x4c]
fld qword [ebp - 0x4c]
call fcn.00401809
push eax
fld qword [ebp - 0x3c]
call fcn.00401809
push eax
push dword [ebp - 4]
call fcn.00416ab7
jmp 0x416954
mov dword [ebp - 0x28], esp
push dword [ebp - 0x10]
mov eax, 0x2c
call sub.Kernel32.dll_lstrlenA
cmp dword [ebp - 0x28], esp
je 0x41686d
push 0x14ab
push 0x405143d
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [0x73e4d5]
fstp qword [ebp - 0x34]
mov dword [ebp - 0x38], esp
fld qword [ebp - 0x34]
call fcn.00401809
push eax
push 0x40
mov eax, 0x25
call sub.Kernel32.dll_LocalAlloc
cmp dword [ebp - 0x38], esp
je 0x4168b9
push 0x1529
push 0x405143d
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], esp
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
mov eax, 0x2b
call sub.Kernel32.dll_RtlMoveMemory
cmp dword [ebp - 0x28], esp
je 0x4168ee
push 0x154e
push 0x405143d
push 6
call fcn.0042af28
add esp, 0xc
fild dword [ebp - 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x62a256]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x62a24e]
fstp qword [ebp - 0x3c]
push 0xa
fld qword [ebp - 0x3c]
call fcn.00401809
push eax
push dword [ebp - 4]
call fcn.00416ab7
fild dword [ebp - 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x62a256]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x62a256]
fstp qword [ebp - 0x3c]
push dword [ebp - 0x1c]
fld qword [ebp - 0x3c]
call fcn.00401809
push eax
push dword [ebp - 4]
call fcn.00416ab7
pop eax
pop ebx
pop ecx
jmp 0x41640e
add esp, 0xc
dec dword [ebp - 8]
cmp dword [ebp + 0x14], 4
jne 0x416989
fild dword [ebp - 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fmul qword [0x62a216]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.00401809
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0
push dword [ebp - 4]
call fcn.00416ab7
push 0x10
push dword [ebp + 8]
call fcn.00416a97
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jne 0x4169e0
push 0xc
push dword [ebp + 8]
call fcn.00416a97
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jne 0x4169d9
mov dword [ebp - 0x14], 4
jmp 0x4169e0
mov dword [ebp - 0x14], 0
push reloc.OLEAUT32.dll_SysStringLen
push 0
push 0x416f07
push 1
mov ebx, 0x9dc
call fcn.00446b70
add esp, 0x10
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00414281
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], esp
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
push dword [ebp - 4]
push dword [ebp - 0x28]
push 0
push 0
mov eax, 0x21
call sub.Kernel32.dll_CreateThread
cmp dword [ebp - 0x30], esp
je 0x416a4c
push 0x1b31
push 0x405143d
push 6
call fcn.0042af28
add esp, 0xc
mov dword [ebp - 0x20], eax
push 0x18
push dword [ebp + 8]
call fcn.00416a97
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jne 0x416a89
push 0x14
push dword [ebp + 8]
call fcn.00416a97
mov dword [ebp - 0x28], eax
push dword [ebp - 0x24]
push 0
push dword [ebp - 0x28]
call fcn.00416ab7
mov eax, dword [ebp - 0x20]
jmp 0x416a91
mov esp, ebp
pop ebp
ret 0x10