Function at 0x488bc8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x488bd0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x489733
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x21], 1
mov eax, dword [ebx + 0x4c]
xor edx, edx
call fcn.004598c0
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebx + 0xe8], eax
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
call fcn.00473220
mov edi, eax
dec edi
test edi, edi
jl 0x488c75
inc edi
xor esi, esi
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
cmp byte [eax + 0x5d], 0
je 0x488c71
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
movzx eax, byte [eax + 0xc]
sub al, 1
jb 0x488c59
je 0x488c5e
dec al
je 0x488c6b
dec al
je 0x488c63
jmp 0x488c71
inc dword [ebp - 0x14]
jmp 0x488c71
inc dword [ebp - 0x18]
jmp 0x488c71
inc dword [ebx + 0xe8]
jmp 0x488c71
inc dword [ebx + 0xe8]
inc esi
dec edi
jne 0x488c21
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push eax
lea eax, [ebx + 0xf8]
mov ecx, 1
mov edx, dword [0x4826a8]
call fcn.00408b1c
add esp, 4
jmp 0x488ca6
mov eax, dword [ebx + 0x60]
xor edx, edx
call fcn.00459e74
call fcn.00456b8c
mov eax, dword [ebx + 0x60]
call fcn.0045a8bc
test eax, eax
jg 0x488c97
mov edi, 1
cmp dword [ebp - 0x14], 0
je 0x488cc7
cmp dword [ebp - 0x18], 0
je 0x488ead
mov eax, dword [ebx + 0x60]
mov dl, 2
call fcn.004587e8
mov edi, eax
mov dword [ebx + 0x74], edi
mov esi, edi
mov eax, 8
call fcn.004829c0
mov edx, eax
mov eax, esi
call fcn.00459cac
mov eax, 8
call fcn.004829d4
mov edx, eax
mov eax, esi
call fcn.00459cf8
push 0
push 0xffffffffffffffff
mov ecx, edi
mov edx, dword [0x4826f0]
xor eax, eax
call fcn.00483f80
mov dword [esi + 0xee], eax
movzx edx, byte [0x489744]
mov byte [eax + 0x43], dl
mov dword [eax + 0x44], 0xffe7edf1
mov eax, esi
xor edx, edx
call fcn.0045a4f0
mov eax, dword [esi + 0x30]
call fcn.0045a3c8
push eax
mov eax, 0x10
call fcn.004829c0
pop edx
sub edx, eax
mov eax, esi
call fcn.00459d48
mov eax, esi
mov dl, 1
call fcn.004589e8
lea ecx, [ebp - 0x68]
mov eax, dword [esi + 0x30]
mov edx, 7
call fcn.00459628
push dword [ebp - 0x64]
push dword [ebp - 0x68]
mov eax, esi
mov edx, 7
call fcn.0045963c
push ebx
push 0x4859d0
mov eax, esi
call fcn.0045b504
push ebx
push 0x486bec
mov eax, esi
call fcn.0045a264
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
lea edx, [ebp - 4]
mov eax, 1
call fcn.00482898
push 0
push 0
mov eax, esi
call fcn.0045a3c8
push eax
mov eax, esi
call fcn.0045a3ac
push eax
mov eax, dword [esi + 0x1c]
push eax
push 0x7a
mov eax, dword [0x49dc38]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004071e0
mov edx, eax
mov eax, 0x489748
mov ecx, 0x50000000
call fcn.0040b6d8
mov edi, eax
mov dword [ebx + 0x7c], edi
mov eax, dword [ebp - 4]
call fcn.004071e0
push eax
push edi
call sub.user32.dll_SetWindowTextW
mov eax, esi
call fcn.0045a2c0
mov edx, 0x489764
call fcn.004571d4
mov eax, 0xc
call fcn.00482a30
push eax
mov eax, esi
call fcn.0045a2c0
mov edx, 4
pop ecx
call fcn.00457190
push 1
mov eax, esi
call fcn.0045a2c0
call fcn.00457330
push eax
push 0x30
push edi
call sub.user32.dll_SendMessageW_1
push 0
mov eax, esi
call fcn.00459d2c
push eax
push 0x701
push edi
call sub.user32.dll_SendMessageW_1
push eax
mov eax, 8
call fcn.004829d4
pop edx
add edx, eax
mov eax, esi
call fcn.0045a3e4
push 0x40
mov eax, esi
call fcn.0045a3ac
push eax
mov eax, 4
call fcn.004829d4
pop edx
sub edx, eax
push edx
mov eax, esi
call fcn.0045a3c8
push eax
push 0
push 0
push 0
push edi
call sub.user32.dll_SetWindowPos
push 0
push 0
push edi
call sub.user32.dll_InvalidateRect
mov eax, esi
call fcn.00459ce0
mov edi, eax
mov eax, esi
call fcn.00459d70
add edi, eax
mov eax, dword [ebx + 0x60]
mov dl, 2
call fcn.004587b4
mov esi, eax
mov dword [ebx + 0x80], esi
mov eax, esi
mov esi, eax
mov eax, esi
mov edx, edi
call fcn.00459cf8
mov eax, 1
call fcn.004829c0
mov edx, eax
mov eax, esi
call fcn.00459cac
mov eax, dword [esi + 0x30]
call fcn.0045a3c8
push eax
mov eax, 2
call fcn.004829c0
pop edx
sub edx, eax
mov eax, esi
call fcn.00459d48
mov eax, dword [esi + 0x30]
call fcn.0045a3ac
mov edi, eax
mov eax, esi
call fcn.00459ce0
sub edi, eax
mov eax, 2
call fcn.004829d4
mov edx, edi
sub edx, eax
mov eax, esi
call fcn.00459d8c
lea ecx, [ebp - 0x68]
mov eax, dword [esi + 0x30]
mov edx, 7
call fcn.00459628
push dword [ebp - 0x64]
push dword [ebp - 0x68]
mov eax, esi
mov edx, 7
call fcn.0045963c
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
mov eax, dword [ebx + 0x80]
mov dl, 2
call fcn.004587e8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp - 8]
mov esi, eax
mov eax, dword [esi + 0x30]
call fcn.0045a3c8
push eax
mov eax, 0x12
call fcn.004829c0
pop edx
sub edx, eax
mov eax, esi
call fcn.00459d48
mov eax, dword [esi + 0x30]
call fcn.0045a3ac
mov edx, eax
mov eax, esi
call fcn.00459d8c
lea ecx, [ebp - 0x68]
mov eax, dword [esi + 0x30]
mov edx, 7
call fcn.00459628
push dword [ebp - 0x64]
push dword [ebp - 0x68]
mov eax, esi
mov edx, 7
call fcn.0045963c
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [0x4a0848]
call fcn.00408954
test eax, eax
jle 0x489140
mov dl, 1
mov eax, dword [0x48239c]
call fcn.00405008
mov dword [ebp - 0x2c], eax
mov edx, 0x489784
mov eax, dword [ebp - 0x2c]
call fcn.0048a984
mov eax, dword [0x4a0848]
call fcn.00408954
dec eax
jne 0x489025
mov eax, dword [0x4a0848]
mov eax, dword [eax]
cmp dword [eax + 0x10], 1
jne 0x489025
lea edx, [ebp - 0x6c]
mov eax, 0x1c
call fcn.00482898
mov edx, dword [ebp - 0x6c]
mov eax, ebx
call fcn.00488b10
jmp 0x48903c
lea edx, [ebp - 0x70]
mov eax, 0x1d
call fcn.00482898
mov edx, dword [ebp - 0x70]
mov eax, ebx
call fcn.00488b10
mov eax, dword [ebx + 0x90]
xor edx, edx
call fcn.004598c0
lea edx, [ebp - 0x74]
mov eax, 0x18
call fcn.00482898
mov edx, dword [ebp - 0x74]
mov eax, dword [ebx + 0x90]
call fcn.00459818
mov eax, dword [ebx + 0x90]
mov dl, 1
call fcn.004598c0
cmp dword [ebp - 0x18], 0
jne 0x4890a7
push 1
mov eax, dword [ebx + 0x9c]
push eax
call sub.user32.dll_ShowWindow
lea edx, [ebp - 0x78]
mov eax, 2
call fcn.00482898
mov eax, dword [ebp - 0x78]
call fcn.004071e0
push eax
mov eax, dword [ebx + 0x9c]
push eax
call sub.user32.dll_SetWindowTextW
mov eax, dword [0x4a0848]
call fcn.00408954
mov edi, eax
dec edi
test edi, edi
jl 0x489231
inc edi
xor esi, esi
mov eax, dword [0x4a0848]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x4890d4
cmp dword [eax + 4], 0
jne 0x4890d7
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x4a0848]
mov ecx, dword [eax + esi*4]
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00484a4c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x28], 0
jne 0x489107
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.00485424
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00459ce0
push eax
mov eax, dword [ebp - 0xc]
call fcn.00459d70
pop edx
add edx, eax
push edx
mov eax, dword [ebp - 8]
call fcn.0045a3ac
pop edx
call fcn.00456aec
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0045a3e4
inc esi
dec edi
jne 0x4890bf
jmp 0x489231
push 0
mov eax, dword [ebx + 0x9c]
push eax
call sub.user32.dll_ShowWindow
push 0x489794
mov eax, dword [ebx + 0x9c]
push eax
call sub.user32.dll_SetWindowTextW
push 0
lea edx, [ebp - 0x7c]
mov eax, 3
call fcn.00482898
mov eax, dword [ebp - 0x7c]
push eax
push 0
push 0x4897a4
push 0
lea edx, [ebp - 0x80]
mov eax, 4
call fcn.00482898
mov eax, dword [ebp - 0x80]
push eax
mov eax, ebx
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00484a4c
call fcn.00459d70
push 0
lea edx, [ebp - 0x84]
mov eax, 5
call fcn.00482898
mov eax, dword [ebp - 0x84]
push eax
push 0
push 0x4897c4
push 0
lea edx, [ebp - 0x88]
mov eax, 6
call fcn.00482898
mov eax, dword [ebp - 0x88]
push eax
mov eax, ebx
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00484a4c
call fcn.00459d70
push 0
lea edx, [ebp - 0x8c]
mov eax, 0x19
call fcn.00482898
mov eax, dword [ebp - 0x8c]
push eax
push 0
push 0x4897e4
push 0
lea edx, [ebp - 0x90]
mov eax, 0x1a
call fcn.00482898
mov eax, dword [ebp - 0x90]
push eax
mov eax, ebx
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00484a4c
call fcn.00459d70
push 0
push 0
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_InvalidateRect
jmp 0x489255
mov eax, dword [ebx + 0x64]
mov edx, 2
call fcn.00459e74
call fcn.00456b8c
mov eax, dword [ebx + 0x64]
call fcn.0045a8bc
cmp eax, 2
jg 0x489243
cmp dword [ebp - 0x18], 0
je 0x4896dd
push 0
mov eax, dword [ebx + 0x9c]
push eax
call sub.user32.dll_ShowWindow
push 0x489794
mov eax, dword [ebx + 0x9c]
push eax
call sub.user32.dll_SetWindowTextW
mov eax, dword [ebx + 0x64]
mov dl, 1
call fcn.004598c0
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebx + 0xa8], 0
jne 0x4892b3
call sub.user32.dll_CreatePopupMenu
mov dword [ebx + 0xa8], eax
cmp dword [ebx + 0xac], 0
jne 0x4892c7
call sub.user32.dll_CreatePopupMenu
mov dword [ebx + 0xac], eax
mov eax, dword [ebx + 0x64]
mov dl, 2
call fcn.004587e8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esi, eax
mov eax, 0xc
call fcn.00482a30
push eax
mov eax, esi
call fcn.0045a2c0
mov edx, 4
pop ecx
call fcn.00457190
mov eax, dword [esi + 0x30]
call fcn.0045a3c8
mov edx, eax
mov eax, esi
call fcn.00459d48
mov eax, dword [esi + 0x30]
call fcn.0045a3c8
push eax
mov eax, esi
call fcn.00459ce0
pop edx
sub edx, eax
mov eax, esi
call fcn.00459d8c
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
call fcn.00473220
mov edi, eax
dec edi
test edi, edi
jl 0x489558
inc edi
xor esi, esi
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
cmp byte [eax + 0xc], 1
jne 0x489550
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
cmp byte [eax + 0x5d], 0
je 0x489550
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
push eax
push 0
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
mov ecx, dword [eax + 4]
mov dl, 8
mov eax, dword [0x4a0844]
call fcn.0046d330
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x30
call fcn.0040486c
mov dword [ebp - 0x60], 0x30
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
mov eax, dword [eax + 0x28]
call fcn.004071e0
mov dword [ebp - 0x3c], eax
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x489406
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
cmp dword [eax + 0x108], 0
je 0x489452
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
mov eax, dword [eax + 0x28]
call fcn.004071e0
push eax
mov eax, esi
or eax, 0x100
push eax
push 0
mov eax, dword [ebx + 0xa8]
push eax
call sub.user32.dll_AppendMenuW
inc dword [ebp - 0x20]
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
cmp dword [eax + 0x104], 0
je 0x48949b
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
mov eax, dword [eax + 0x28]
call fcn.004071e0
push eax
mov eax, esi
or eax, 0x200
push eax
push 0
mov eax, dword [ebx + 0xac]
push eax
call sub.user32.dll_AppendMenuW
inc dword [ebp - 0x24]
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x28]
mov ecx, dword [ebx + 0xf8]
mov dword [ecx + edx*4], eax
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
call fcn.004744fc
test eax, eax
jle 0x489521
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
call fcn.004744fc
dec eax
test eax, eax
jl 0x489541
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
mov ecx, eax
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004842e8
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x1c]
dec dword [ebp - 0x30]
jne 0x4894f5
jmp 0x489541
push 0xffffffffffffffff
mov eax, dword [0x4a0844]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004732c4
mov ecx, eax
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004842e8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
jne 0x48954d
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
inc dword [ebp - 0x28]
inc esi
dec edi
jne 0x48934d
cmp dword [ebp - 0x20], 0
je 0x48958e
cmp dword [ebp - 0x24], 0
je 0x48958e
lea edx, [ebp - 0x98]
mov eax, 0x13
call fcn.00482898
mov eax, dword [ebp - 0x98]
call fcn.004071e0
push eax
mov eax, dword [ebx + 0xa4]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x48960b
cmp dword [ebp - 0x20], 0
je 0x4895c4
cmp dword [ebp - 0x24], 0
jne 0x4895c4
lea edx, [ebp - 0x9c]
mov eax, 0x14
call fcn.00482898
mov eax, dword [ebp - 0x9c]
call fcn.004071e0
push eax
mov eax, dword [ebx + 0xa4]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x48960b
cmp dword [ebp - 0x20], 0
jne 0x4895fa
cmp dword [ebp - 0x24], 0
je 0x4895fa
lea edx, [ebp - 0xa0]
mov eax, 0x15
call fcn.00482898
mov eax, dword [ebp - 0xa0]
call fcn.004071e0
push eax
mov eax, dword [ebx + 0xa4]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x48960b
push 0x489794
mov eax, dword [ebx + 0xa4]
push eax
call sub.user32.dll_SetWindowTextW
mov eax, dword [ebp - 0x20]
or eax, dword [ebp - 0x24]
jne 0x489668
mov eax, 0x50
call fcn.004829d4
mov edx, eax
mov eax, dword [ebx + 0x64]
call fcn.00459d8c
mov eax, 0x50
call fcn.004829d4
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.0045a3ac
sub esi, eax
sar esi, 1
jns 0x489644
adc esi, 0
mov eax, dword [ebp - 8]
call fcn.00459ce0
add esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00459cf8
push 0
mov eax, dword [ebx + 0xa4]
push eax
call sub.user32.dll_ShowWindow
jmp 0x4896b9
mov eax, 0x40
call fcn.004829d4
mov edx, eax
mov eax, dword [ebx + 0x64]
call fcn.00459d8c
mov eax, dword [ebx + 0x64]
call fcn.00459d70
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.0045a3ac
sub esi, eax
sar esi, 1
jns 0x489697
adc esi, 0
mov eax, dword [ebp - 8]
call fcn.00459ce0
add esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00459cf8
push 5
mov eax, dword [ebx + 0xa4]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x64]
call fcn.0045a3ac
mov edx, eax
mov eax, dword [ebx + 0x68]
call fcn.00459d8c
cmp dword [ebp - 0x10], 0
je 0x4896e7
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.004854e8
jmp 0x4896e7
mov eax, dword [ebx + 0x64]
xor edx, edx
call fcn.004598c0
mov eax, dword [ebx + 0x50]
mov dl, 1
call fcn.004598c0
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_SetFocus
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48973a
lea eax, [ebp - 0xa0]
mov edx, 3
call fcn.0040714c
lea eax, [ebp - 0x90]
mov edx, 0xa
call fcn.0040714c
lea eax, [ebp - 4]
call fcn.00407144
ret