Function at 0x484bb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x484bb8
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x485704
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x21], 1
mov eax, dword [ebx + 0x4c]
xor edx, edx
call fcn.00458954
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 [0x49c6d8]
mov eax, dword [eax + 0x40]
call fcn.0046f914
mov edi, eax
dec edi
test edi, edi
jl 0x484c5d
inc edi
xor esi, esi
mov eax, dword [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
cmp byte [eax + 0x5d], 0
je 0x484c59
mov eax, dword [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
movzx eax, byte [eax + 0xc]
sub al, 1
jb 0x484c41
je 0x484c46
dec al
je 0x484c53
dec al
je 0x484c4b
jmp 0x484c59
inc dword [ebp - 0x14]
jmp 0x484c59
inc dword [ebp - 0x18]
jmp 0x484c59
inc dword [ebx + 0xe8]
jmp 0x484c59
inc dword [ebx + 0xe8]
inc esi
dec edi
jne 0x484c09
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push eax
lea eax, [ebx + 0xf8]
mov ecx, 1
mov edx, dword [0x47e700]
call fcn.00408a3c
add esp, 4
jmp 0x484c8e
mov eax, dword [ebx + 0x60]
xor edx, edx
call fcn.00458f08
call fcn.00455c20
mov eax, dword [ebx + 0x60]
call fcn.00459950
test eax, eax
jg 0x484c7f
mov edi, 1
cmp dword [ebp - 0x14], 0
je 0x484caf
cmp dword [ebp - 0x18], 0
je 0x484e95
mov eax, dword [ebx + 0x60]
mov dl, 2
call fcn.0045787c
mov edi, eax
mov dword [ebx + 0x74], edi
mov esi, edi
mov eax, 8
call fcn.0047ea18
mov edx, eax
mov eax, esi
call fcn.00458d40
mov eax, 8
call fcn.0047ea2c
mov edx, eax
mov eax, esi
call fcn.00458d8c
push 0
push 0xffffffffffffffff
mov ecx, edi
mov edx, dword [0x47e748]
xor eax, eax
call fcn.0047ffd8
mov dword [esi + 0xee], eax
movzx edx, byte [0x485714]
mov byte [eax + 0x43], dl
mov dword [eax + 0x44], 0xffe7edf1
mov eax, esi
xor edx, edx
call fcn.00459584
mov eax, dword [esi + 0x30]
call fcn.0045945c
push eax
mov eax, 0x10
call fcn.0047ea18
pop edx
sub edx, eax
mov eax, esi
call fcn.00458ddc
mov eax, esi
mov dl, 1
call fcn.00457a7c
lea ecx, [ebp - 0x68]
mov eax, dword [esi + 0x30]
mov edx, 7
call fcn.004586bc
push dword [ebp - 0x64]
push dword [ebp - 0x68]
mov eax, esi
mov edx, 7
call fcn.004586d0
push ebx
push 0x481a68
mov eax, esi
call fcn.0045a598
push ebx
push 0x482bd4
mov eax, esi
call fcn.004592f8
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
lea edx, [ebp - 4]
mov eax, 1
call fcn.0047e8f0
push 0
push 0
mov eax, esi
call fcn.0045945c
push eax
mov eax, esi
call fcn.00459440
push eax
mov eax, dword [esi + 0x1c]
push eax
push 0x7a
mov eax, dword [0x499c38]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004070f0
mov edx, eax
mov eax, 0x485718
mov ecx, 0x50000000
call fcn.0040b4c0
mov edi, eax
mov dword [ebx + 0x7c], edi
mov eax, dword [ebp - 4]
call fcn.004070f0
push eax
push edi
call sub.user32.dll_SetWindowTextW
mov eax, esi
call fcn.00459354
mov edx, 0x485734
call fcn.00456268
mov eax, 0xc
call fcn.0047ea88
push eax
mov eax, esi
call fcn.00459354
mov edx, 4
pop ecx
call fcn.00456224
push 1
mov eax, esi
call fcn.00459354
call fcn.004563c4
push eax
push 0x30
push edi
call sub.user32.dll_SendMessageW_1
push 0
mov eax, esi
call fcn.00458dc0
push eax
push 0x701
push edi
call sub.user32.dll_SendMessageW_1
push eax
mov eax, 8
call fcn.0047ea2c
pop edx
add edx, eax
mov eax, esi
call fcn.00459478
push 0x40
mov eax, esi
call fcn.00459440
push eax
mov eax, 4
call fcn.0047ea2c
pop edx
sub edx, eax
push edx
mov eax, esi
call fcn.0045945c
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.00458d74
mov edi, eax
mov eax, esi
call fcn.00458e04
add edi, eax
mov eax, dword [ebx + 0x60]
mov dl, 2
call fcn.00457848
mov esi, eax
mov dword [ebx + 0x80], esi
mov eax, esi
mov esi, eax
mov eax, esi
mov edx, edi
call fcn.00458d8c
mov eax, 1
call fcn.0047ea18
mov edx, eax
mov eax, esi
call fcn.00458d40
mov eax, dword [esi + 0x30]
call fcn.0045945c
push eax
mov eax, 2
call fcn.0047ea18
pop edx
sub edx, eax
mov eax, esi
call fcn.00458ddc
mov eax, dword [esi + 0x30]
call fcn.00459440
mov edi, eax
mov eax, esi
call fcn.00458d74
sub edi, eax
mov eax, 2
call fcn.0047ea2c
mov edx, edi
sub edx, eax
mov eax, esi
call fcn.00458e20
lea ecx, [ebp - 0x68]
mov eax, dword [esi + 0x30]
mov edx, 7
call fcn.004586bc
push dword [ebp - 0x64]
push dword [ebp - 0x68]
mov eax, esi
mov edx, 7
call fcn.004586d0
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
mov eax, dword [ebx + 0x80]
mov dl, 2
call fcn.0045787c
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.0045945c
push eax
mov eax, 0x12
call fcn.0047ea18
pop edx
sub edx, eax
mov eax, esi
call fcn.00458ddc
mov eax, dword [esi + 0x30]
call fcn.00459440
mov edx, eax
mov eax, esi
call fcn.00458e20
lea ecx, [ebp - 0x68]
mov eax, dword [esi + 0x30]
mov edx, 7
call fcn.004586bc
push dword [ebp - 0x64]
push dword [ebp - 0x68]
mov eax, esi
mov edx, 7
call fcn.004586d0
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [0x49c6dc]
call fcn.00408874
test eax, eax
jle 0x485128
mov dl, 1
mov eax, dword [0x47e3f4]
call fcn.00404fb4
mov dword [ebp - 0x2c], eax
mov edx, 0x485754
mov eax, dword [ebp - 0x2c]
call fcn.004869a4
mov eax, dword [0x49c6dc]
call fcn.00408874
dec eax
jne 0x48500d
mov eax, dword [0x49c6dc]
mov eax, dword [eax]
cmp dword [eax + 0x10], 1
jne 0x48500d
lea edx, [ebp - 0x6c]
mov eax, 0x1c
call fcn.0047e8f0
mov edx, dword [ebp - 0x6c]
mov eax, ebx
call fcn.00484af8
jmp 0x485024
lea edx, [ebp - 0x70]
mov eax, 0x1d
call fcn.0047e8f0
mov edx, dword [ebp - 0x70]
mov eax, ebx
call fcn.00484af8
mov eax, dword [ebx + 0x90]
xor edx, edx
call fcn.00458954
lea edx, [ebp - 0x74]
mov eax, 0x18
call fcn.0047e8f0
mov edx, dword [ebp - 0x74]
mov eax, dword [ebx + 0x90]
call fcn.004588ac
mov eax, dword [ebx + 0x90]
mov dl, 1
call fcn.00458954
cmp dword [ebp - 0x18], 0
jne 0x48508f
push 1
mov eax, dword [ebx + 0x9c]
push eax
call sub.user32.dll_ShowWindow
lea edx, [ebp - 0x78]
mov eax, 2
call fcn.0047e8f0
mov eax, dword [ebp - 0x78]
call fcn.004070f0
push eax
mov eax, dword [ebx + 0x9c]
push eax
call sub.user32.dll_SetWindowTextW
mov eax, dword [0x49c6dc]
call fcn.00408874
mov edi, eax
dec edi
test edi, edi
jl 0x485219
inc edi
xor esi, esi
mov eax, dword [0x49c6dc]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x4850bc
cmp dword [eax + 4], 0
jne 0x4850bf
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x49c6dc]
mov ecx, dword [eax + esi*4]
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00480adc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x28], 0
jne 0x4850ef
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.004814b8
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00458d74
push eax
mov eax, dword [ebp - 0xc]
call fcn.00458e04
pop edx
add edx, eax
push edx
mov eax, dword [ebp - 8]
call fcn.00459440
pop edx
call fcn.00455b80
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.00459478
inc esi
dec edi
jne 0x4850a7
jmp 0x485219
push 0
mov eax, dword [ebx + 0x9c]
push eax
call sub.user32.dll_ShowWindow
push 0x485764
mov eax, dword [ebx + 0x9c]
push eax
call sub.user32.dll_SetWindowTextW
push 0
lea edx, [ebp - 0x7c]
mov eax, 3
call fcn.0047e8f0
mov eax, dword [ebp - 0x7c]
push eax
push 0
push 0x485774
push 0
lea edx, [ebp - 0x80]
mov eax, 4
call fcn.0047e8f0
mov eax, dword [ebp - 0x80]
push eax
mov eax, ebx
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00480adc
call fcn.00458e04
push 0
lea edx, [ebp - 0x84]
mov eax, 5
call fcn.0047e8f0
mov eax, dword [ebp - 0x84]
push eax
push 0
push 0x485794
push 0
lea edx, [ebp - 0x88]
mov eax, 6
call fcn.0047e8f0
mov eax, dword [ebp - 0x88]
push eax
mov eax, ebx
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00480adc
call fcn.00458e04
push 0
lea edx, [ebp - 0x8c]
mov eax, 0x19
call fcn.0047e8f0
mov eax, dword [ebp - 0x8c]
push eax
push 0
push 0x4857b4
push 0
lea edx, [ebp - 0x90]
mov eax, 0x1a
call fcn.0047e8f0
mov eax, dword [ebp - 0x90]
push eax
mov eax, ebx
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.00480adc
call fcn.00458e04
push 0
push 0
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_InvalidateRect
jmp 0x48523d
mov eax, dword [ebx + 0x64]
mov edx, 2
call fcn.00458f08
call fcn.00455c20
mov eax, dword [ebx + 0x64]
call fcn.00459950
cmp eax, 2
jg 0x48522b
cmp dword [ebp - 0x18], 0
je 0x4856ae
push 0
mov eax, dword [ebx + 0x9c]
push eax
call sub.user32.dll_ShowWindow
push 0x485764
mov eax, dword [ebx + 0x9c]
push eax
call sub.user32.dll_SetWindowTextW
mov eax, dword [ebx + 0x64]
mov dl, 1
call fcn.00458954
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebx + 0xa8], 0
jne 0x48529b
call sub.user32.dll_CreatePopupMenu
mov dword [ebx + 0xa8], eax
cmp dword [ebx + 0xac], 0
jne 0x4852af
call sub.user32.dll_CreatePopupMenu
mov dword [ebx + 0xac], eax
mov eax, dword [ebx + 0x64]
mov dl, 2
call fcn.0045787c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esi, eax
mov eax, 0xc
call fcn.0047ea88
push eax
mov eax, esi
call fcn.00459354
mov edx, 4
pop ecx
call fcn.00456224
mov eax, dword [esi + 0x30]
call fcn.0045945c
mov edx, eax
mov eax, esi
call fcn.00458ddc
mov eax, dword [esi + 0x30]
call fcn.0045945c
push eax
mov eax, esi
call fcn.00458d74
pop edx
sub edx, eax
mov eax, esi
call fcn.00458e20
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 [0x49c6d8]
mov eax, dword [eax + 0x40]
call fcn.0046f914
mov edi, eax
dec edi
test edi, edi
jl 0x485529
inc edi
xor esi, esi
mov eax, dword [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
cmp byte [eax + 0xc], 1
jne 0x485521
mov eax, dword [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
cmp byte [eax + 0x5d], 0
je 0x485521
mov eax, dword [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
mov edx, 0x4857d4
call fcn.00474a04
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x30
call fcn.00404818
mov dword [ebp - 0x60], 0x30
mov eax, dword [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
mov eax, dword [eax + 0x28]
call fcn.004070f0
mov dword [ebp - 0x3c], eax
mov eax, dword [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x4853d7
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
cmp dword [eax + 0x108], 0
je 0x485423
mov eax, dword [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
mov eax, dword [eax + 0x28]
call fcn.004070f0
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 [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
cmp dword [eax + 0x104], 0
je 0x48546c
mov eax, dword [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
mov eax, dword [eax + 0x28]
call fcn.004070f0
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 [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x28]
mov ecx, dword [ebx + 0xf8]
mov dword [ecx + edx*4], eax
mov eax, dword [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
call fcn.00470bf0
test eax, eax
jle 0x4854f2
mov eax, dword [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
call fcn.00470bf0
dec eax
test eax, eax
jl 0x485512
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
mov ecx, eax
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00480378
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x1c]
dec dword [ebp - 0x30]
jne 0x4854c6
jmp 0x485512
push 0xffffffffffffffff
mov eax, dword [0x49c6d8]
mov eax, dword [eax + 0x40]
mov edx, esi
call fcn.0046f9b8
mov ecx, eax
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00480378
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 0
jne 0x48551e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
inc dword [ebp - 0x28]
inc esi
dec edi
jne 0x485335
cmp dword [ebp - 0x20], 0
je 0x48555f
cmp dword [ebp - 0x24], 0
je 0x48555f
lea edx, [ebp - 0x98]
mov eax, 0x13
call fcn.0047e8f0
mov eax, dword [ebp - 0x98]
call fcn.004070f0
push eax
mov eax, dword [ebx + 0xa4]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x4855dc
cmp dword [ebp - 0x20], 0
je 0x485595
cmp dword [ebp - 0x24], 0
jne 0x485595
lea edx, [ebp - 0x9c]
mov eax, 0x14
call fcn.0047e8f0
mov eax, dword [ebp - 0x9c]
call fcn.004070f0
push eax
mov eax, dword [ebx + 0xa4]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x4855dc
cmp dword [ebp - 0x20], 0
jne 0x4855cb
cmp dword [ebp - 0x24], 0
je 0x4855cb
lea edx, [ebp - 0xa0]
mov eax, 0x15
call fcn.0047e8f0
mov eax, dword [ebp - 0xa0]
call fcn.004070f0
push eax
mov eax, dword [ebx + 0xa4]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x4855dc
push 0x485764
mov eax, dword [ebx + 0xa4]
push eax
call sub.user32.dll_SetWindowTextW
mov eax, dword [ebp - 0x20]
or eax, dword [ebp - 0x24]
jne 0x485639
mov eax, 0x50
call fcn.0047ea2c
mov edx, eax
mov eax, dword [ebx + 0x64]
call fcn.00458e20
mov eax, 0x50
call fcn.0047ea2c
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.00459440
sub esi, eax
sar esi, 1
jns 0x485615
adc esi, 0
mov eax, dword [ebp - 8]
call fcn.00458d74
add esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00458d8c
push 0
mov eax, dword [ebx + 0xa4]
push eax
call sub.user32.dll_ShowWindow
jmp 0x48568a
mov eax, 0x40
call fcn.0047ea2c
mov edx, eax
mov eax, dword [ebx + 0x64]
call fcn.00458e20
mov eax, dword [ebx + 0x64]
call fcn.00458e04
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.00459440
sub esi, eax
sar esi, 1
jns 0x485668
adc esi, 0
mov eax, dword [ebp - 8]
call fcn.00458d74
add esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
call fcn.00458d8c
push 5
mov eax, dword [ebx + 0xa4]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x64]
call fcn.00459440
mov edx, eax
mov eax, dword [ebx + 0x68]
call fcn.00458e20
cmp dword [ebp - 0x10], 0
je 0x4856b8
mov eax, ebx
mov edx, dword [ebp - 0x10]
call fcn.0048157c
jmp 0x4856b8
mov eax, dword [ebx + 0x64]
xor edx, edx
call fcn.00458954
mov eax, dword [ebx + 0x50]
mov dl, 1
call fcn.00458954
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 0x48570b
lea eax, [ebp - 0xa0]
mov edx, 3
call fcn.0040705c
lea eax, [ebp - 0x90]
mov edx, 0xa
call fcn.0040705c
lea eax, [ebp - 4]
call fcn.00407054
ret