Function at 0x5549f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 0x44], 0
fld qword [ebp + 0xc]
fmul qword [0x6d3a30]
fcomp qword [0x5d5448]
fnstsw ax
test ah, 0x41
jne 0x554a24
fld qword [ebp + 0xc]
fmul qword [0x6d3a30]
fstp qword [ebp - 0x64]
jmp 0x554a32
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov eax, dword [0x6d3a28]
sub eax, 1
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
fcomp qword [ebp - 0x64]
fnstsw ax
test ah, 0x41
jne 0x554a8a
fld qword [ebp + 0xc]
fmul qword [0x6d3a30]
fcomp qword [0x5d5448]
fnstsw ax
test ah, 0x41
jne 0x554a6e
fld qword [ebp + 0xc]
fmul qword [0x6d3a30]
fstp qword [ebp - 0x70]
jmp 0x554a7c
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x74], edx
jmp 0x554a9b
mov eax, dword [0x6d3a28]
sub eax, 1
mov dword [ebp - 0x7c], eax
fild dword [ebp - 0x7c]
fstp qword [ebp - 0x78]
fld qword [ebp - 0x78]
call fcn.005c0cb8
mov dword [ebp - 0x4c], eax
fld qword [0x6d3a20]
fsub qword [ebp + 0x24]
fmul qword [0x6d3a38]
fcomp qword [0x5d5448]
fnstsw ax
test ah, 0x41
jne 0x554ad9
fld qword [0x6d3a20]
fsub qword [ebp + 0x24]
fmul qword [0x6d3a38]
fstp qword [ebp - 0x84]
jmp 0x554aea
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov ecx, dword [0x6d3a2c]
sub ecx, 1
mov dword [ebp - 0x88], ecx
fild dword [ebp - 0x88]
fcomp qword [ebp - 0x84]
fnstsw ax
test ah, 0x41
jne 0x554b6d
fld qword [0x6d3a20]
fsub qword [ebp + 0x24]
fmul qword [0x6d3a38]
fcomp qword [0x5d5448]
fnstsw ax
test ah, 0x41
jne 0x554b3f
fld qword [0x6d3a20]
fsub qword [ebp + 0x24]
fmul qword [0x6d3a38]
fstp qword [ebp - 0x90]
jmp 0x554b53
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x94], eax
jmp 0x554b88
mov ecx, dword [0x6d3a2c]
sub ecx, 1
mov dword [ebp - 0x9c], ecx
fild dword [ebp - 0x9c]
fstp qword [ebp - 0x98]
fld qword [ebp - 0x98]
call fcn.005c0cb8
mov dword [ebp - 0x50], eax
fld qword [ebp + 0x1c]
fsub qword [ebp + 0xc]
fmul qword [0x6d3a30]
fadd qword [0x5d5440]
call fcn.005c0cb8
mov dword [ebp - 0x20], eax
fld qword [ebp + 0x24]
fsub qword [ebp + 0x14]
fmul qword [0x6d3a38]
fadd qword [0x5d5440]
call fcn.005c0cb8
mov dword [ebp - 0x54], eax
cmp dword [0x6e9bc4], 0
jne 0x554beb
mov edx, dword [ebp - 0x20]
add edx, dword [0x6d3a58]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x54]
add eax, dword [0x6d3a5c]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x20]
cmp ecx, dword [0x6d3a40]
jle 0x554c05
mov edx, dword [0x6d3a40]
sub edx, dword [ebp - 0x4c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x54]
cmp eax, dword [0x6d3a44]
jle 0x554c1f
mov ecx, dword [0x6d3a44]
sub ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [0x6d3a48]
jge 0x554c37
mov eax, dword [0x6d3a48]
mov dword [ebp - 0xa0], eax
jmp 0x554c40
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x54]
cmp eax, dword [0x6d3a4c]
jge 0x554c62
mov ecx, dword [0x6d3a4c]
mov dword [ebp - 0xa4], ecx
jmp 0x554c6b
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp - 0x4c]
mov dword [ecx], edx
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0x38]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 0x54]
mov edx, dword [ebp + 0x38]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14], 0
call fcn.0054b41c
test eax, eax
jne 0x554d73
cmp dword [0x6e9bc4], 0
je 0x554cff
mov edx, dword [ebp + 0x2c]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x4c]
push eax
call dword [0x6e9bc4]
add esp, 0x14
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 0
jne 0x554cfd
mov eax, 1
jmp 0x55538c
jmp 0x554d73
cmp dword [0x61b71c], 1
jne 0x554d73
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 4
mov edx, dword [ebp + 8]
add edx, 0x10
push edx
push 0x61b720
push 0x61b72c
call fcn.0057c0f0
add esp, 0x18
test eax, eax
jne 0x554d5f
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 4
mov edx, dword [ebp + 8]
add edx, 0x14
push edx
push 0x61b734
push 0x61b740
call fcn.0057c0f0
add esp, 0x18
test eax, eax
jne 0x554d5f
mov dword [ebp - 0x44], 1
jmp 0x554d69
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov dword [0x61b71c], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0
je 0x554f34
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 0
je 0x554db5
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [0x6d3a0c]
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0
push 0
push 0x40000000
push 0
push 0x61b748
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
cmp dword [0x6fac18], 0
jne 0x554e01
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [0x6fac18], eax
cmp dword [ebp - 0x44], 0
jne 0x554e54
cmp dword [0x61b718], 1
jne 0x554e54
push 0
push 2
mov ecx, dword [ebp + 8]
add ecx, 0x10
push ecx
push 0x61b758
push 0x61b764
call fcn.0057bcf8
add esp, 0x14
push 0
push 2
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
push 0x61b76c
push 0x61b778
call fcn.0057bcf8
add esp, 0x14
mov dword [0x61b718], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x554e80
cmp dword [0x6e9bc8], 0
je 0x554e76
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call dword [0x6e9bc8]
add esp, 4
mov eax, 1
jmp 0x55538c
mov eax, dword [ebp + 8]
mov dword [eax + 0xc0], 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
jne 0x554ed2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [0x6e9bc8], 0
je 0x554ec8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call dword [0x6e9bc8]
add esp, 4
mov eax, 1
jmp 0x55538c
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp - 0x28]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp - 4]
mov dword [eax + 0xc], ecx
jmp 0x555057
mov edx, dword [ebp + 0x30]
and edx, 8
test edx, edx
je 0x554f47
mov dword [ebp - 0x48], 0x200f0000
jmp 0x554f4e
mov dword [ebp - 0x48], 0xcf0000
call fcn.0054b41c
test eax, eax
je 0x554f65
mov dword [ebp - 0x4c], 0xfffffc18
mov dword [ebp - 0x50], 0xfffffc18
push 0
mov eax, dword [0x6d3a0c]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp + 0x2c]
push eax
push str.MedusaWndClass
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc], 0
jne 0x554faf
mov eax, 1
jmp 0x55538c
mov eax, dword [ebp + 8]
mov dword [eax + 0xc0], 1
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
jne 0x554fe8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, 1
jmp 0x55538c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp - 0x2c]
mov dword [ecx], edx
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0x24], ecx
call fcn.0054b41c
test eax, eax
jne 0x555075
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
jmp 0x555095
push 0
push 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_CreateEnhMetaFileA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], 0
jne 0x5550da
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc0], 0
jne 0x5550d0
cmp dword [0x6e9bc8], 0
je 0x5550d0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call dword [0x6e9bc8]
add esp, 4
mov eax, 1
jmp 0x55538c
cmp dword [0x6d3a60], 2
jne 0x5550fd
push 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.GDI32.dll_GetCurrentObject]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xdc], eax
jmp 0x55510a
mov edx, dword [ebp + 8]
mov dword [edx + 0xdc], 0
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_GetCurrentObject]
mov edx, dword [ebp + 8]
mov dword [edx + 0xe0], eax
cmp dword [0x6d3a60], 2
jne 0x55514d
push 0
mov eax, dword [0x6d3a68]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_RealizePalette]
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.GDI32.dll_SetMapMode]
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [0x6e9bb8], 1
jne 0x555371
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jne 0x5551f2
cmp dword [0x6d3a60], 2
jne 0x5551b6
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xdc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0xc0], 0
jne 0x5551e8
cmp dword [0x6e9bc8], 0
je 0x5551e8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
call dword [0x6e9bc8]
add esp, 4
mov eax, 1
jmp 0x55538c
cmp dword [0x6d3a60], 2
jne 0x555212
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.GDI32.dll_GetCurrentObject]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x2c], eax
jmp 0x55521c
mov edx, dword [ebp + 8]
mov dword [edx + 0x2c], 0
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_GetCurrentObject]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], eax
push 7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_GetCurrentObject]
mov edx, dword [ebp + 8]
mov dword [edx + 0x28], eax
push 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_SetMapMode]
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
jne 0x5552f3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [0x6d3a60], 2
jne 0x5552b7
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xdc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc0], 0
jne 0x5552e9
cmp dword [0x6e9bc8], 0
je 0x5552e9
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call dword [0x6e9bc8]
add esp, 4
mov eax, 1
jmp 0x55538c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [0x6d3a60], 2
jne 0x555333
push 0
mov ecx, dword [0x6d3a68]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x30], ecx
mov edx, dword [0x6e9ba4]
push edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp + 8]
mov dword [eax + 0x24], 1
jmp 0x55537b
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x24], 0
push 0xa
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
mov esp, ebp
pop ebp
ret