Function at 0x404d70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x4a1500]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x60
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [0x4a2210], eax
test esi, esi
je 0x404dbe
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xc
call esi
push 0xb
mov edi, eax
call esi
push 0
push edi
push eax
push 1
push 0x80
push dword [0x4a4ee0]
call dword [sym.imp.USER32.dll_LoadImageW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push esi
push 1
push 0x80
push dword [ebx + 4]
call edi
push esi
push 0
push 0x80
push dword [ebx + 4]
call edi
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [ebx + 0xdc]
mov esi, eax
test ecx, ecx
je 0x404e26
cmp ecx, esi
je 0x404e26
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebx + 0xdc], esi
mov edi, 0x16
cmp byte [0x4a2214], 0
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
je 0x404e4d
push 0x64
push dword [0x4a2210]
push edi
call esi
mov edi, eax
push 0x5c
lea eax, [esp + 0x64]
push 0
push eax
call fcn.00454a10
add esp, 0xc
lea eax, [esp + 0x7c]
push dword [0x48e794]
push 0x20
push eax
call fcn.004691f0
add esp, 0xc
mov dword [esp + 0x70], 0x1f4
lea eax, [esp + 0x60]
mov byte [esp + 0x78], 7
neg edi
mov byte [esp + 0x7a], 5
mov dword [esp + 0x60], edi
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebx + 0xe0], eax
mov edi, 0xe
cmp byte [0x4a2214], 0
je 0x404eb7
push 0x64
push dword [0x4a2210]
push edi
call esi
mov edi, eax
push 0x5c
lea eax, [esp + 0xc4]
push 0
push eax
call fcn.00454a10
add esp, 0xc
lea eax, [esp + 0xdc]
push dword [0x48e798]
push 0x20
push eax
call fcn.004691f0
add esp, 0xc
mov dword [esp + 0xd0], 0x1f4
lea eax, [esp + 0xc0]
mov byte [esp + 0xd8], 7
neg edi
mov byte [esp + 0xda], 5
mov dword [esp + 0xc0], edi
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebx + 0xe4], eax
mov edi, 0xe
cmp byte [0x4a2214], 0
je 0x404f36
push 0x64
push dword [0x4a2210]
push edi
call esi
mov edi, eax
push 0x5c
lea eax, [esp + 0x64]
push 0
push eax
call fcn.00454a10
add esp, 0xc
lea eax, [esp + 0x7c]
push dword [0x48e79c]
push 0x20
push eax
call fcn.004691f0
add esp, 0xc
mov dword [esp + 0x70], 0x2bc
lea eax, [esp + 0x60]
mov byte [esp + 0x78], 7
neg edi
mov byte [esp + 0x7a], 5
mov dword [esp + 0x60], edi
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebx + 0xe8], eax
xorps xmm0, xmm0
lea eax, [esp + 0x50]
push eax
push dword [ebx + 4]
movups xmmword [esp + 0x58], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x40]
xorps xmm0, xmm0
push eax
push dword [ebx + 4]
movups xmmword [esp + 0x48], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [0x4a2214], 0
mov edi, dword [0x4a20f8]
mov esi, dword [0x4a20fc]
mov dword [esp + 0x18], edi
je 0x404ff5
push 0x64
push dword [0x4a2210]
push edi
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp byte [0x4a2214], 0
mov edi, eax
je 0x404ff5
push 0x64
push dword [0x4a2210]
push esi
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
sub esi, dword [esp + 0x4c]
sub edi, dword [esp + 0x48]
sub esi, dword [esp + 0x54]
sub edi, dword [esp + 0x50]
add esi, dword [esp + 0x44]
add esi, dword [esp + 0x5c]
add edi, dword [esp + 0x40]
add edi, dword [esp + 0x58]
mov eax, dword [sym.imp.USER32.dll_MoveWindow]
push 0
push esi
push edi
push 0
push 0
push dword [ebx + 4]
call eax
mov eax, dword [0x4a2210]
mov esi, dword [ebx + 0xdc]
cmp eax, 0x7d
jae 0x40503e
mov eax, 0x384
jmp 0x405058
cmp eax, 0x96
jae 0x40504c
mov eax, 0x385
jmp 0x405058
cmp eax, 0xc8
sbb eax, eax
add eax, 0x387
cmp dword [ebx + 0x48], eax
je 0x405091
mov ecx, dword [ebx + 0x44]
mov dword [ebx + 0x48], eax
test ecx, ecx
je 0x40506d
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [ebx + 0x24]
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x4c], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405091
push 1
push 0
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea esi, [ebx + 0x20]
push 0x708
push dword [ebx + 4]
call edi
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x10], eax
call dword [edx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4050c6
call fcn.00452245
mov dword [esi + 0x14], eax
test eax, eax
je 0x4050f4
push esi
push dword [esp + 0x18]
push eax
call fcn.00452347
push dword [esi + 0x14]
call fcn.004522aa
push eax
push 0xfffffffffffffffc
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
je 0x4050f4
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
push 0x709
push dword [ebx + 4]
call edi
lea ecx, [ebx + 0x50]
mov dword [ecx], eax
push 0x70a
push dword [ebx + 4]
mov dword [esp + 0x28], ecx
call edi
lea ecx, [ebx + 0x54]
mov dword [ecx], eax
push 0x70b
push dword [ebx + 4]
mov dword [esp + 0x2c], ecx
call edi
lea ecx, [ebx + 0x58]
mov dword [ecx], eax
push 0x70c
push dword [ebx + 4]
mov dword [esp + 0x30], ecx
call edi
lea ecx, [ebx + 0x5c]
mov dword [ecx], eax
push 0x70d
push dword [ebx + 4]
mov dword [esp + 0x34], ecx
call edi
lea ecx, [ebx + 0x60]
mov dword [ecx], eax
lea esi, [ebx + 0x64]
push 0x70e
push dword [ebx + 4]
mov dword [esp + 0x1c], ecx
call edi
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x10], eax
call dword [edx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x405182
call fcn.00452245
mov dword [esi + 0x14], eax
test eax, eax
je 0x4051b0
push esi
push dword [esp + 0x1c]
push eax
call fcn.00452347
push dword [esi + 0x14]
call fcn.004522aa
push eax
push 0xfffffffffffffffc
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
je 0x4051b0
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
push 0x70f
push dword [ebx + 4]
lea esi, [ebx + 0xa0]
call edi
mov edx, dword [esi]
mov ecx, esi
mov edi, eax
call dword [edx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4051e0
call fcn.00452245
mov dword [esi + 0x14], eax
test eax, eax
je 0x405207
push esi
push dword [esp + 0x1c]
push eax
call fcn.00452347
push dword [esi + 0x14]
call fcn.004522aa
push eax
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
test eax, eax
je 0x405207
mov dword [esi + 0x20], eax
mov dword [esi + 4], edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [ebx + 0xe0]
push 0x30
push dword [ebx + 0x50]
call esi
push 1
push dword [ebx + 0xe4]
push 0x30
push dword [ebx + 0x54]
call esi
push 1
push dword [ebx + 0xe4]
push 0x30
push dword [ebx + 0x58]
call esi
push 1
push dword [ebx + 0xe4]
push 0x30
push dword [ebx + 0x5c]
call esi
push 1
push dword [ebx + 0xe4]
push 0x30
push dword [ebx + 0x60]
call esi
push 1
push dword [ebx + 0xe8]
lea edi, [ebx + 0x68]
push 0x30
push dword [edi]
call esi
push 1
push dword [ebx + 0xe8]
lea eax, [ebx + 0xa4]
push 0x30
push dword [ebx + 0xa4]
mov dword [esp + 0x28], eax
call esi
push 0x4a5bc8
lea eax, [esp + 0x34]
mov dword [ebx + 0x88], 0xffffff
push eax
mov dword [ebx + 0x8c], 0xcc3e0d
mov dword [ebx + 0x90], 0xcc3e0d
mov dword [ebx + 0x94], 0xffff
mov dword [ebx + 0x98], 0xffff00
mov dword [ebx + 0x9c], 0xff00ff
mov dword [ebx + 0xc4], 0xcc3e0d
mov dword [ebx + 0xc8], 0xffffff
mov dword [ebx + 0xcc], 0xcc3e0d
mov dword [ebx + 0xd0], 0xffff
mov dword [ebx + 0xd4], 0xffff00
mov dword [ebx + 0xd8], 0xff00ff
call fcn.00403d80
push 0
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
sub ecx, edx
mov eax, dword [eax + 8]
push ecx
sub eax, esi
push eax
push edx
push esi
push dword [ebx + 0x24]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
call ebx
push 0x4a2100
lea eax, [esp + 0x34]
push eax
call fcn.00403d80
push 0
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
sub ecx, edx
mov esi, dword [eax]
mov eax, dword [eax + 8]
push ecx
sub eax, esi
push eax
mov eax, dword [esp + 0x2c]
push edx
push esi
push dword [eax]
call ebx
push 0x4a2110
lea eax, [esp + 0x34]
push eax
call fcn.00403d80
push 0
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
sub ecx, edx
mov eax, dword [eax + 8]
push ecx
sub eax, esi
push eax
mov eax, dword [esp + 0x30]
push edx
push esi
push dword [eax]
call ebx
push 0x4a2120
lea eax, [esp + 0x34]
push eax
call fcn.00403d80
push 0
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
sub ecx, edx
mov eax, dword [eax + 8]
push ecx
sub eax, esi
push eax
mov eax, dword [esp + 0x34]
push edx
push esi
push dword [eax]
call ebx
push 0x4a2130
lea eax, [esp + 0x34]
push eax
call fcn.00403d80
push 0
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
sub ecx, edx
mov eax, dword [eax + 8]
push ecx
sub eax, esi
push eax
mov eax, dword [esp + 0x38]
push edx
push esi
push dword [eax]
call ebx
push 0x4a2140
lea eax, [esp + 0x34]
push eax
call fcn.00403d80
push 0
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
sub ecx, edx
mov eax, dword [eax + 8]
push ecx
sub eax, esi
push eax
mov eax, dword [esp + 0x20]
push edx
push esi
push dword [eax]
call ebx
push 0x4a2150
lea eax, [esp + 0x34]
push eax
call fcn.00403d80
push 0
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
sub ecx, edx
mov eax, dword [eax + 8]
push ecx
sub eax, esi
push eax
push edx
push esi
push dword [edi]
call ebx
push 0x4a2160
lea eax, [esp + 0x34]
push eax
call fcn.00403d80
mov ebx, dword [esp + 0x18]
push 0
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
sub ecx, edx
mov eax, dword [eax + 8]
push ecx
sub eax, esi
push eax
mov eax, dword [sym.imp.USER32.dll_MoveWindow]
push edx
push esi
push dword [ebx]
call eax
mov ecx, dword [esp + 0x20]
mov edx, 0x708
push 0
call fcn.0042ef60
mov ecx, dword [esp + 0x28]
add esp, 4
mov edx, 0x709
push 1
call fcn.0042ef60
mov ecx, dword [esp + 0x2c]
add esp, 4
mov edx, 0x70a
push 1
call fcn.0042ef60
mov ecx, dword [esp + 0x30]
add esp, 4
mov edx, 0x4bd
push 1
call fcn.0042ef60
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, 0x70b
push 1
call fcn.0042ef60
add esp, 4
mov edx, 0x5dc
mov ecx, edi
push 0
call fcn.0042ef60
add esp, 4
mov edx, 0x70c
mov ecx, ebx
push 0
call fcn.0042ef60
add esp, 4
call fcn.00436c20
test al, al
jne 0x405508
call fcn.00436d90
test al, al
jne 0x405508
push 0
push dword [ebx]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x124]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004523b6
mov esp, ebp
pop ebp
ret 0x10