Function at 0x40c110
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a944
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push esi
push edi
lea edi, [ebp - 0x1a4]
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x38], 0x203
mov dword [ebp - 0x34], 0x401654
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov esi, esp
push 0x65
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadIconA]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0x24], eax
mov esi, esp
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0x20], eax
mov esi, esp
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], str.Beauty_Majon
mov dword [ebp - 0x14], str.Beauty_Majon
mov esi, esp
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_RegisterClassA]
cmp esi, esp
call fcn.00443170
mov esi, esp
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0x1e0
push 0x280
push 0
push 0
push DirectSoundCreate
push str.Beauty_Majon
push str.Beauty_Majon
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40c232
mov esi, esp
push 0
push str.Majon
push 0x489078
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, esp
call fcn.00443170
xor eax, eax
jmp 0x40cde2
mov esi, esp
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, esp
call fcn.00443170
mov esi, esp
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp esi, esp
call fcn.00443170
mov esi, esp
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, esp
call fcn.00443170
mov eax, dword [ebp - 0x10]
mov dword [0x4953a0], eax
mov ecx, dword [ebp + 8]
mov dword [0x4951f8], ecx
mov dword [0x49567c], 0
push 0
lea edx, [ebp - 0xcc]
push edx
push 0
call sub.DDRAW.dll_DirectDrawCreate
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x40c2c6
push str.DirectDrawCreate_FAILED
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401a1e
add esp, 0xc
jmp 0x40cde2
mov esi, esp
push 0x4953c8
push 0x48a600
mov edx, dword [ebp - 0xcc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xcc]
push ecx
call dword [eax]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x40c316
push str.QueryInterface_FAILED
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401a1e
add esp, 0xc
jmp 0x40cde2
mov esi, esp
push 0x11
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [0x4953c8]
mov eax, dword [edx]
mov ecx, dword [0x4953c8]
push ecx
call dword [eax + 0x50]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x40c363
push str.SetCooperativeLevel_FAILED
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401a1e
add esp, 0xc
jmp 0x40cde2
mov esi, esp
push 0
push 0
push 0x18
push 0x1e0
push 0x280
mov ecx, dword [0x4953c8]
mov edx, dword [ecx]
mov eax, dword [0x4953c8]
push eax
call dword [edx + 0x54]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x40c435
mov esi, esp
push 0
push 0
push 0x20
push 0x1e0
push 0x280
mov ecx, dword [0x4953c8]
mov edx, dword [ecx]
mov eax, dword [0x4953c8]
push eax
call dword [edx + 0x54]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
jne 0x40c3ef
mov dword [0x4952e4], 0x20
mov dword [0x4953b0], 4
jmp 0x40c433
mov esi, esp
push 0
push 0
push 0x10
push 0x1e0
push 0x280
mov ecx, dword [0x4953c8]
mov edx, dword [ecx]
mov eax, dword [0x4953c8]
push eax
call dword [edx + 0x54]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0xc8], eax
mov dword [0x4952e4], 0x10
mov dword [0x4953b0], 2
jmp 0x40c449
mov dword [0x4952e4], 0x18
mov dword [0x4953b0], 3
cmp dword [ebp - 0xc8], 0
je 0x40c46f
push str.SetDisplayMode_FAILED
mov ecx, dword [ebp - 0xc8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401a1e
add esp, 0xc
jmp 0x40cde2
push 0x7c
push 0
lea eax, [ebp - 0xb4]
push eax
call fcn.00443c40
add esp, 0xc
mov dword [ebp - 0xb4], 0x7c
mov dword [ebp - 0xb0], 0x21
mov dword [ebp - 0x4c], 0x218
mov dword [ebp - 0xa0], 1
mov esi, esp
push 0
push 0x4953cc
lea ecx, [ebp - 0xb4]
push ecx
mov edx, dword [0x4953c8]
mov eax, dword [edx]
mov ecx, dword [0x4953c8]
push ecx
call dword [eax + 0x18]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x40c4fc
push str.CreateSurface_FAILED
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401a1e
add esp, 0xc
jmp 0x40cde2
mov dword [ebp - 0xc4], 4
mov esi, esp
push 0x4953d0
lea ecx, [ebp - 0xc4]
push ecx
mov edx, dword [0x4953cc]
mov eax, dword [edx]
mov ecx, dword [0x4953cc]
push ecx
call dword [eax + 0x30]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x40c559
push str.GetAttachedSurface_FAILED
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401a1e
add esp, 0xc
jmp 0x40cde2
push 0x20
push 0
lea ecx, [ebp - 0xec]
push ecx
call fcn.00443c40
add esp, 0xc
mov dword [ebp - 0xec], 0x20
mov esi, esp
lea edx, [ebp - 0xec]
push edx
mov eax, dword [0x4953cc]
mov ecx, dword [eax]
mov edx, dword [0x4953cc]
push edx
call dword [ecx + 0x54]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0
je 0x40c5c3
push str.GetPixelformat_FAILED
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00401a1e
add esp, 0xc
jmp 0x40cde2
mov edx, dword [ebp - 0xdc]
mov dword [0x4951f0], edx
mov eax, dword [ebp - 0xd8]
mov dword [0x4952e0], eax
mov ecx, dword [ebp - 0xd4]
mov dword [0x4951f4], ecx
mov edx, dword [0x4952e4]
mov dword [ebp - 0x144], edx
cmp dword [ebp - 0x144], 0x10
je 0x40c724
cmp dword [ebp - 0x144], 0x18
je 0x40c616
cmp dword [ebp - 0x144], 0x20
je 0x40c616
jmp 0x40c7d4
mov eax, dword [0x4951f0]
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xf4], 0
mov ecx, 1
test ecx, ecx
je 0x40c662
cmp dword [ebp - 0xf0], 0xff
jne 0x40c642
jmp 0x40c662
mov edx, dword [ebp - 0xf0]
shr edx, 8
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xf4]
add eax, 1
mov dword [ebp - 0xf4], eax
jmp 0x40c62b
mov ecx, dword [ebp - 0xf4]
mov dword [0x4951ec], ecx
mov edx, dword [0x4952e0]
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0xf4], 0
mov eax, 1
test eax, eax
je 0x40c6bb
cmp dword [ebp - 0xf0], 0xff
jne 0x40c69b
jmp 0x40c6bb
mov ecx, dword [ebp - 0xf0]
shr ecx, 8
mov dword [ebp - 0xf0], ecx
mov edx, dword [ebp - 0xf4]
add edx, 1
mov dword [ebp - 0xf4], edx
jmp 0x40c684
mov eax, dword [ebp - 0xf4]
mov dword [0x4952d4], eax
mov ecx, dword [0x4951f4]
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xf4], 0
mov edx, 1
test edx, edx
je 0x40c713
cmp dword [ebp - 0xf0], 0xff
jne 0x40c6f3
jmp 0x40c713
mov eax, dword [ebp - 0xf0]
shr eax, 8
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf4]
add ecx, 1
mov dword [ebp - 0xf4], ecx
jmp 0x40c6dc
mov edx, dword [ebp - 0xf4]
mov dword [0x4951e8], edx
jmp 0x40c7d4
cmp dword [0x4951f0], 0x7c00
jne 0x40c78c
cmp dword [0x4952e0], 0x3e0
jne 0x40c78c
cmp dword [0x4951f4], 0x1f
jne 0x40c78c
mov dword [0x495204], 0x22b
xor eax, eax
mov ax, word [0x49541c]
and eax, 0xf8
shl eax, 7
xor ecx, ecx
mov cx, word [0x49541e]
and ecx, 0xf8
lea edx, [eax + ecx*4]
xor eax, eax
mov ax, word [0x492ca0]
and eax, 0xf8
sar eax, 3
add edx, eax
mov word [0x4953a6], dx
jmp 0x40c7d4
mov dword [0x495204], 0x235
xor ecx, ecx
mov cx, word [0x49541c]
and ecx, 0xf8
shl ecx, 8
xor edx, edx
mov dx, word [0x49541e]
and edx, 0xfc
lea eax, [ecx + edx*8]
xor ecx, ecx
mov cx, word [0x492ca0]
and ecx, 0xf8
sar ecx, 3
add eax, ecx
mov word [0x4953a6], ax
push str.Ui.xmp
call fcn.00401ca8
add esp, 4
mov dword [0x4953e8], eax
push 0
push 0x50
push 0x500
call fcn.0040131b
add esp, 0xc
mov dword [0x4953e4], eax
push 0
push 0x1e0
push 0x280
call fcn.0040131b
add esp, 0xc
mov dword [0x4953f4], eax
push 0
push 0x151
push 0xc2
call fcn.0040131b
add esp, 0xc
mov dword [0x495430], eax
push 0
push 0x53
push 0xa8
call fcn.0040131b
add esp, 0xc
mov dword [0x495428], eax
push 0
push 0x4d
push 0xe6
call fcn.0040131b
add esp, 0xc
mov dword [0x49542c], eax
push str.window01.xmp
call fcn.00401ca8
add esp, 4
mov dword [0x495434], eax
mov dword [ebp - 0xf8], 0
jmp 0x40c887
mov edx, dword [ebp - 0xf8]
add edx, 1
mov dword [ebp - 0xf8], edx
cmp dword [ebp - 0xf8], 8
jge 0x40c8b5
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax*4 + 0x492cf4]
push ecx
call fcn.00401ca8
add esp, 4
mov edx, dword [ebp - 0xf8]
mov dword [edx*4 + 0x495380], eax
jmp 0x40c878
mov dword [ebp - 0xf8], 0
jmp 0x40c8d0
mov eax, dword [ebp - 0xf8]
add eax, 1
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0x29
jge 0x40c8fe
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ecx*4 + 0x492d14]
push edx
call fcn.00401ca8
add esp, 4
mov ecx, dword [ebp - 0xf8]
mov dword [ecx*4 + 0x495230], eax
jmp 0x40c8c1
mov dword [0x495460], 0
mov dword [0x49545c], 0
push 8
call fcn.00443710
add esp, 4
mov dword [ebp - 0x108], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x108], 0
je 0x40c945
mov ecx, dword [ebp - 0x108]
call fcn.004012a3
mov dword [ebp - 0x148], eax
jmp 0x40c94f
mov dword [ebp - 0x148], 0
mov edx, dword [ebp - 0x148]
mov dword [ebp - 0x104], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x104]
mov dword [0x4952dc], eax
push 0x14
call fcn.00443710
add esp, 4
mov dword [ebp - 0x110], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x110], 0
je 0x40c9ae
push 0x1e0
push 0x280
push 0
push 0
mov ecx, dword [ebp - 0x110]
call fcn.0040113b
mov dword [ebp - 0x14c], eax
jmp 0x40c9b8
mov dword [ebp - 0x14c], 0
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0xfc], edx
push 0xec
call fcn.00443710
add esp, 4
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x118], 0
je 0x40ca14
mov eax, dword [ebp - 0xfc]
push eax
mov ecx, dword [ebp - 0x118]
call fcn.004013b6
mov dword [ebp - 0x150], eax
jmp 0x40ca1e
mov dword [ebp - 0x150], 0
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x114], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x114]
mov dword [0x495424], edx
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x11c], ecx
cmp dword [ebp - 0x11c], 0
je 0x40ca81
mov esi, esp
push 1
mov edx, dword [ebp - 0x11c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x11c]
call dword [eax]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0x154], eax
jmp 0x40ca8b
mov dword [ebp - 0x154], 0
push 0x18
call fcn.00443710
add esp, 4
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x128], 0
je 0x40cabe
mov ecx, dword [ebp - 0x128]
call fcn.00401717
mov dword [ebp - 0x158], eax
jmp 0x40cac8
mov dword [ebp - 0x158], 0
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x124], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x124]
mov dword [0x495200], edx
push 0x68
call fcn.00443710
add esp, 4
mov dword [ebp - 0x130], eax
mov dword [ebp - 4], 4
cmp dword [ebp - 0x130], 0
je 0x40cb1a
mov ecx, dword [ebp - 0x130]
call fcn.0040191f
mov dword [ebp - 0x15c], eax
jmp 0x40cb24
mov dword [ebp - 0x15c], 0
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x12c]
mov dword [0x495414], ecx
push 0
mov edx, dword [0x4953a0]
push edx
call fcn.00401802
mov byte [0x495484], al
cmp dword [0x49548c], 0
jne 0x40cc1c
push 0xd0
call fcn.00443710
add esp, 4
mov dword [ebp - 0x138], eax
mov dword [ebp - 4], 5
cmp dword [ebp - 0x138], 0
je 0x40cb9f
mov eax, dword [0x4953a0]
push eax
mov ecx, dword [ebp - 0x138]
call fcn.0040120d
mov dword [ebp - 0x160], eax
jmp 0x40cba9
mov dword [ebp - 0x160], 0
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x134], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x134]
mov dword [0x49548c], edx
mov eax, dword [0x49548c]
cmp dword [eax], 0
jne 0x40cc1c
mov ecx, dword [0x49548c]
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x140]
mov dword [ebp - 0x13c], edx
cmp dword [ebp - 0x13c], 0
je 0x40cc08
push 1
mov ecx, dword [ebp - 0x13c]
call fcn.0040157d
mov dword [ebp - 0x164], eax
jmp 0x40cc12
mov dword [ebp - 0x164], 0
mov dword [0x49548c], 0
mov esi, esp
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, esp
call fcn.00443170
mov esi, esp
push 0
push str.beauty.sav
call dword [sym.imp.KERNEL32.dll__lopen]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0x100], eax
cmp dword [ebp - 0x100], 0xffffffff
jne 0x40ccef
mov dword [0x495310], 0
mov dword [0x495314], 0
mov dword [0x495318], 0
mov dword [ebp - 0xf8], 0
jmp 0x40cc91
mov ecx, dword [ebp - 0xf8]
add ecx, 1
mov dword [ebp - 0xf8], ecx
cmp dword [ebp - 0xf8], 6
jge 0x40cce0
mov edx, dword [ebp - 0xf8]
mov dword [edx*4 + 0x49534c], 0
mov eax, dword [ebp - 0xf8]
mov dword [eax*4 + 0x495364], 0
mov ecx, dword [ebp - 0xf8]
mov dword [ecx*4 + 0x495334], 0
mov edx, dword [ebp - 0xf8]
mov dword [edx*4 + 0x49531c], 0
jmp 0x40cc82
mov dword [0x49531c], 1
jmp 0x40cd8f
mov esi, esp
push 0x6c
push 0x495310
mov eax, dword [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll__lread]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0xf8], 0
jmp 0x40cd27
mov ecx, dword [ebp - 0xf8]
add ecx, 1
mov dword [ebp - 0xf8], ecx
cmp dword [ebp - 0xf8], 6
jge 0x40cd4e
mov edx, dword [ebp - 0xf8]
mov eax, dword [edx*4 + 0x495334]
and al, 0xfe
mov ecx, dword [ebp - 0xf8]
mov dword [ecx*4 + 0x495334], eax
jmp 0x40cd18
cmp dword [0x495310], 0
je 0x40cd63
mov dword [0x495d38], 0
jmp 0x40cd6f
mov edx, dword [0x495318]
mov dword [0x495d38], edx
mov eax, dword [0x495314]
mov dword [0x4954a8], eax
mov esi, esp
mov ecx, dword [ebp - 0x100]
push ecx
call dword [sym.imp.KERNEL32.dll__lclose]
cmp esi, esp
call fcn.00443170
mov dword [ebp - 0xf8], 0
jmp 0x40cdaa
mov edx, dword [ebp - 0xf8]
add edx, 1
mov dword [ebp - 0xf8], edx
cmp dword [ebp - 0xf8], 4
jge 0x40cdc6
mov eax, dword [ebp - 0xf8]
mov dword [eax*4 + 0x495208], 0
jmp 0x40cd9b
call fcn.00401613
mov esi, esp
push 5
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, esp
call fcn.00443170
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1a4
cmp ebp, esp
call fcn.00443170
mov esp, ebp
pop ebp
ret