Function at 0x4f87a4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
jmp 0x4f8af2
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], eax
jne 0x4f87d2
xor eax, eax
jmp 0x4f8b3d
mov eax, dword [0x52c7cc]
cmp dword [eax], 0
je 0x4f8865
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [0x52c7cc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
test eax, eax
jne 0x4f8810
xor eax, eax
jmp 0x4f8b3d
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0xc], 0
jle 0x4f8865
push 0
push 0
push 0x3ff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x3ff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 0xc]
jmp 0x4f8b3d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x52c7d4]
push eax
call fcn.004f6de7
add esp, 0xc
mov eax, dword [ebp - 8]
mov ax, word [eax + 0x16]
and ax, 0x7fff
mov cx, word [ebp - 0x10]
shl cx, 0xf
or ax, cx
mov ecx, dword [ebp - 8]
mov word [ecx + 0x16], ax
mov eax, dword [ebp - 8]
mov ax, word [eax + 0x16]
and ax, 0x8000
mov cx, word [ebp - 4]
and cx, 0x7fff
or ax, cx
mov ecx, dword [ebp - 8]
mov word [ecx + 0x16], ax
mov eax, dword [ebp - 8]
push eax
push 0x3ff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.004fb2f0
add esp, 8
push 0
call fcn.0049c470
add esp, 4
mov eax, dword [ebp + 8]
mov dword [0x533660], eax
mov eax, dword [0x533644]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004e3c5c
add esp, 8
push 5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
jmp 0x4f8b3d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.004e58b1
add esp, 0x14
mov eax, dword [ebp - 0x24]
and eax, 0xffff
mov dword [ebp - 0x2c], eax
jmp 0x4f8aaa
mov eax, dword [0x52c77c]
push eax
call fcn.004bb488
add esp, 4
jmp 0x4f8ae8
mov eax, dword [ebp - 0x20]
and eax, 0xffff
mov dword [ebp - 0x30], eax
jmp 0x4f89e5
mov eax, dword [0x52c7cc]
mov ax, word [eax + 0x16]
shr ax, 0xf
and ax, 1
movzx eax, ax
test eax, eax
je 0x4f89ad
mov eax, dword [0x52c7cc]
xor ecx, ecx
mov cx, word [eax + 0x16]
and ecx, 0x7fff
mov eax, dword [0x52c7b0]
mov eax, dword [eax + ecx*4]
mov dword [0x52c7d4], eax
jmp 0x4f89ca
mov eax, dword [0x52c7cc]
xor ecx, ecx
mov cx, word [eax + 0x16]
and ecx, 0x7fff
mov eax, dword [ecx*4 + 0x533708]
mov dword [0x52c7d4], eax
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
jmp 0x4f8b3d
cmp dword [ebp - 0x30], 1
je 0x4f896e
jmp 0x4f89f4
jmp 0x4f8ae8
mov eax, dword [ebp - 0x20]
and eax, 0xffff
mov dword [ebp - 0x34], eax
jmp 0x4f8a80
mov eax, dword [0x52c7cc]
mov ax, word [eax + 0x16]
shr ax, 0xf
and ax, 1
movzx eax, ax
test eax, eax
je 0x4f8a48
mov eax, dword [0x52c7cc]
xor ecx, ecx
mov cx, word [eax + 0x16]
and ecx, 0x7fff
mov eax, dword [0x52c7b0]
mov eax, dword [eax + ecx*4]
mov dword [0x52c7d4], eax
jmp 0x4f8a65
mov eax, dword [0x52c7cc]
xor ecx, ecx
mov cx, word [eax + 0x16]
and ecx, 0x7fff
mov eax, dword [ecx*4 + 0x533708]
mov dword [0x52c7d4], eax
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
jmp 0x4f8b3d
cmp dword [ebp - 0x34], 0
je 0x4f8a09
jmp 0x4f8a8f
jmp 0x4f8ae8
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4f8ae8
cmp dword [ebp - 0x2c], 0x3ff
jg 0x4f8ad6
je 0x4f895e
cmp dword [ebp - 0x2c], 1
je 0x4f89f9
cmp dword [ebp - 0x2c], 2
je 0x4f8a94
jmp 0x4f8ae8
cmp dword [ebp - 0x2c], 0x7531
je 0x4f894b
jmp 0x4f8ae8
jmp 0x4f8b36
cmp dword [ebp - 0x28], 0x30f
ja 0x4f8b24
je 0x4f87d2
cmp dword [ebp - 0x28], 0x110
je 0x4f886d
cmp dword [ebp - 0x28], 0x111
je 0x4f891f
jmp 0x4f8b36
cmp dword [ebp - 0x28], 0x311
je 0x4f87bf
jmp 0x4f8b36
xor eax, eax
jmp 0x4f8b3d
pop edi
pop esi
pop ebx
leave
ret 0x10