Function at 0x408924
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0x10
call fcn.0041522b
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jne 0x40898c
jmp 0x40960f
mov eax, str.CometWindow
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4089a2
push ebx
call fcn.00415231
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, 0x42d5bd
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4089bc
push ebx
call fcn.00415231
add esp, 4
pop eax
mov dword [ebp - 8], eax
push str.user32.dll
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
nop
nop
mov dword [ebp - 0x1c], eax
push str.CreateWindowExA
push dword [ebp - 0x1c]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
call fcn.004052e2
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
push eax
call fcn.004052e2
mov dword [ebp - 0x20], eax
push 0
mov ebx, 0x2d4
call fcn.00416d60
add esp, 4
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x2c]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fdiv qword [0x42d5ca]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fsub qword [0x42d5d2]
fstp qword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
push 1
push 0
push 1
push 0
push 1
push 0
push 1
push 0
push 1
push 0x78
push 1
push 0x168
push 1
push 0xc8
push 1
fld qword [ebp - 0x3c]
call fcn.00401cad
push eax
push 1
push 0x80c80000
push 1
push dword [ebp - 0x20]
push 1
push dword [ebp - 0x1c]
push 1
push 0
push dword [ebp - 0xc]
call fcn.00404d43
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x40960f
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x408ae9
push 0x242
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x408b06
push 0x242
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call fcn.00409641
push 0
mov ebx, 0x108
call fcn.00416720
add esp, 4
mov dword [ebp - 0x1c], eax
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.SHELL32.dll_ExtractIconA]
nop
nop
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x408b61
push ebx
call fcn.00415231
add esp, 4
push dword [ebp - 0x20]
push 1
push 0x80
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.USER32.dll_SendMessageA]
nop
nop
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x408ba5
push 0x348
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x408bc2
push 0x348
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 0x1c], ebx
push 0x80000301
push 0
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push 1
mov ebx, 0x168
call fcn.00415dc0
add esp, 0x10
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
push 0x42d5da
mov ecx, 2
call fcn.00401c51
add esp, 8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408c18
push ebx
call fcn.00415231
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x408c2c
push ebx
call fcn.00415231
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x408c5a
push 0x374
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x408c77
push 0x374
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov eax, str.Static
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004052e2
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408ca8
push ebx
call fcn.00415231
add esp, 4
lea eax, [ebp - 8]
push eax
call fcn.004052e2
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
fild dword [ebx]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fsub qword [0x42d5ea]
fstp qword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
push 1
push 0
push 1
push 0
push 1
push 0
push 1
push dword [ebp - 0x10]
push 1
push 0x14
push 1
fld qword [ebp - 0x3c]
call fcn.00401cad
push eax
push 1
push 0xa
push 1
push 0xa
push 1
push 0x50000000
push 1
push dword [ebp - 0x28]
push 1
push dword [ebp - 0x24]
push 1
push 0
push dword [ebp - 0xc]
call fcn.00404d43
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x408d7e
push 0x488
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x408d9b
push 0x488
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov eax, 0x42d5f2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004052e2
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408dcc
push ebx
call fcn.00415231
add esp, 4
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
fild dword [ebx]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fsub qword [0x42d5ea]
fstp qword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
push 1
push 0
push 1
push 0
push 1
push 0
push 1
push dword [ebp - 0x10]
push 1
push 0xa
push 1
fld qword [ebp - 0x38]
call fcn.00401cad
push eax
push 1
push 0x1e
push 1
push 0xa
push 1
push 0x50000000
push 1
push 0
push 1
push dword [ebp - 0x24]
push 1
push 0
push dword [ebp - 0xc]
call fcn.00404d43
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x408e98
push 0x596
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x408eb5
push 0x596
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x1c], ebx
push 0x64
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
call fcn.00409667
mov eax, 0x42d604
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x408ee7
push ebx
call fcn.00415231
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x408f15
push 0x604
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x408f32
push 0x604
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
mov eax, str.Static
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004052e2
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408f63
push ebx
call fcn.00415231
add esp, 4
lea eax, [ebp - 8]
push eax
call fcn.004052e2
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x2c]
fild dword [ebx]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fsub qword [0x42d5ea]
fstp qword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0
push 0
push dword [ebp - 0x48]
push 1
push 0
push 1
push 0
push 1
push 0
push 1
push dword [ebp - 0x10]
push 1
push 0x14
push 1
fld qword [ebp - 0x3c]
call fcn.00401cad
push eax
push 1
push 0x32
push 1
push 0xa
push 1
push 0x50000000
push 1
push dword [ebp - 0x28]
push 1
push dword [ebp - 0x24]
push 1
push 0
push dword [ebp - 0xc]
call fcn.00404d43
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x409039
push 0x718
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x409056
push 0x718
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
mov eax, 0x42d5f2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004052e2
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x409087
push ebx
call fcn.00415231
add esp, 4
mov ebx, dword [ebp - 0x14]
add ebx, 8
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x28]
fild dword [ebx]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fsub qword [0x42d5ea]
fstp qword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
push 1
push 0
push 1
push 0
push 1
push 0
push 1
push dword [ebp - 0x10]
push 1
push 0xa
push 1
fld qword [ebp - 0x38]
call fcn.00401cad
push eax
push 1
push 0x46
push 1
push 0xa
push 1
push 0x50000000
push 1
push 0
push 1
push dword [ebp - 0x24]
push 1
push 0
push dword [ebp - 0xc]
call fcn.00404d43
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x409153
push 0x826
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x409170
push 0x826
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
push 0x64
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
call fcn.00409667
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x4091b6
push 0x86c
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4091d3
push 0x86c
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
push 5
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x40921e
push 0x89f
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40923b
push 0x89f
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
push 5
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x409286
push 0x8d2
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4092a3
push 0x8d2
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x1c], ebx
push 5
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x4092ee
push 0x905
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40930b
push 0x905
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
push 5
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
push 0x11
xor eax, eax
call dword [0x43152a]
nop
nop
mov dword [ebp - 0x18], eax
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x409368
push 0x981
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x409385
push 0x981
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 0x1c], ebx
push 0
push dword [ebp - 0x18]
push 0x30
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
xor eax, eax
call dword [sym.imp.USER32.dll_SendMessageA]
nop
nop
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x4093d8
push 0x9c4
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4093f5
push 0x9c4
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
push 0
push dword [ebp - 0x18]
push 0x30
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
xor eax, eax
call dword [sym.imp.USER32.dll_SendMessageA]
nop
nop
push 0
mov ebx, 0x350
call fcn.00416d70
add esp, 4
push 5
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.USER32.dll_ShowWindow]
nop
nop
push 3
push 0
push 0
push 0
push 0
push 0xffffffff
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.USER32.dll_SetWindowPos]
nop
nop
call fcn.00405e7e
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x40949c
push 0xadd
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4094b9
push 0xadd
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x30
mov dword [ebp - 0x1c], ebx
push 0
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push 1
push 0x1000
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
nop
nop
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x40950e
push 0xb22
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x40952b
push 0xb22
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x48
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push 0x4314d6
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x1c]
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x409576
push 0xb63
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x409593
push 0xb63
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x20
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
cmp dword [ebx], 0
jle 0x40960f
mov ebx, dword [0x4314f2]
call fcn.00401038
push ebx
push ecx
mov eax, dword [ebp + 8]
dec eax
jns 0x4095d6
push 0xb97
push 0x401c430
push 4
call fcn.00415249
add esp, 0xc
pop ecx
pop ebx
cmp eax, ecx
jl 0x4095f3
push 0xb97
push 0x401c430
push 1
call fcn.00415249
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x20
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40961f
push ebx
call fcn.00415231
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40962f
push ebx
call fcn.00415231
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00415231
add esp, 4
mov esp, ebp
pop ebp
ret 4