Function at 0x4900e4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x490a17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov byte [eax + 0x21], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x2c]
xor edx, edx
call fcn.0040e698
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.0040e698
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0xa4], edx
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
call fcn.00477500
mov esi, eax
dec esi
test esi, esi
jl 0x4901ce
inc esi
xor ebx, ebx
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
cmp byte [eax + 0x5d], 0
je 0x4901ca
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
movzx eax, byte [eax + 0xc]
sub al, 1
jb 0x4901ac
je 0x4901b1
dec al
je 0x4901b6
dec al
je 0x4901c1
jmp 0x4901ca
inc dword [ebp - 0x18]
jmp 0x4901ca
inc dword [ebp - 0x1c]
jmp 0x4901ca
mov eax, dword [ebp - 8]
inc dword [eax + 0xa4]
jmp 0x4901ca
mov eax, dword [ebp - 8]
inc dword [eax + 0xa4]
inc ebx
dec esi
jne 0x490174
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
add eax, 0xb8
mov ecx, 1
mov edx, dword [0x486bcc]
call fcn.00408a78
add esp, 4
cmp dword [ebp - 0x18], 0
setne dl
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x54]
call fcn.0040e698
cmp dword [ebp - 0x18], 0
jle 0x49020e
cmp dword [ebp - 0x1c], 0
je 0x490212
xor eax, eax
jmp 0x490214
mov al, 1
mov byte [ebp - 0x29], al
jmp 0x49022b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
xor edx, edx
call fcn.0040ec44
call fcn.0040ba84
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
call fcn.0040f724
test eax, eax
jg 0x490219
xor esi, esi
cmp dword [ebp - 0x18], 0
je 0x49024c
cmp dword [ebp - 0x1c], 0
je 0x4903b9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
mov dl, 2
call fcn.0040d578
mov ebx, eax
mov eax, 8
call fcn.004874a4
mov edx, eax
mov eax, ebx
call fcn.0040ea7c
mov eax, 8
call fcn.004874b8
mov edx, eax
mov eax, ebx
call fcn.0040eac8
mov eax, ebx
xor edx, edx
call fcn.0040f2c0
mov eax, dword [ebx + 0x30]
call fcn.0040f198
push eax
mov eax, 0x10
call fcn.004874a4
pop edx
sub edx, eax
mov eax, ebx
call fcn.0040eb18
mov eax, ebx
mov dl, 1
call fcn.0040d778
lea ecx, [ebp - 0x68]
mov eax, dword [ebx + 0x30]
mov edx, 7
call fcn.0040e400
push dword [ebp - 0x64]
push dword [ebp - 0x68]
mov eax, ebx
mov edx, 7
call fcn.0040e414
mov eax, dword [ebp - 8]
push eax
push 0x48a480
mov eax, ebx
call fcn.00410390
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x10]
lea edx, [ebp - 0x10]
mov eax, 1
call fcn.0044d254
push 0
push 0
mov eax, ebx
call fcn.0040f198
push eax
mov eax, ebx
call fcn.0040f17c
push eax
mov eax, dword [ebx + 0x1c]
push eax
push 0x7a
mov eax, dword [0x4bfc38]
push eax
push 0
mov eax, dword [ebp - 0x10]
call fcn.0040712c
mov esi, eax
mov edx, esi
mov eax, 0x490a28
mov ecx, 0x50000000
call fcn.0040b50c
mov edi, eax
push esi
push edi
call sub.user32.dll_SetWindowTextW
push 1
mov eax, ebx
call fcn.0040f090
call fcn.0040c228
push eax
push 0x30
push edi
call sub.user32.dll_SendMessageW_1
push 0
mov eax, ebx
call fcn.0040eafc
push eax
push 0x701
push edi
call sub.user32.dll_SendMessageW_1
mov esi, eax
mov eax, 8
call fcn.004874b8
add esi, eax
mov edx, esi
mov eax, ebx
call fcn.0040f1b4
push 0x40
mov eax, ebx
call fcn.0040f17c
push eax
mov eax, ebx
call fcn.0040f198
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, ebx
call fcn.0040eab0
mov esi, eax
mov eax, ebx
call fcn.0040eb40
add esi, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
mov dl, 2
call fcn.0040d544
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x50], ebx
mov eax, dword [ebp - 8]
mov eax, ebx
mov ebx, eax
mov eax, ebx
mov edx, esi
call fcn.0040eac8
mov eax, dword [ebx + 0x30]
call fcn.0040f198
mov edx, eax
mov eax, ebx
call fcn.0040eb18
mov eax, dword [ebx + 0x30]
call fcn.0040f17c
push eax
mov eax, ebx
call fcn.0040eab0
pop edx
sub edx, eax
mov eax, ebx
call fcn.0040eb5c
lea ecx, [ebp - 0x68]
mov eax, dword [ebx + 0x30]
mov edx, 7
call fcn.0040e400
push dword [ebp - 0x64]
push dword [ebp - 0x68]
mov eax, ebx
mov edx, 7
call fcn.0040e414
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x50]
mov dl, 2
call fcn.0040d578
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ebx, eax
mov eax, dword [ebx + 0x30]
call fcn.0040f198
push eax
mov eax, 0x12
call fcn.004874a4
pop edx
sub edx, eax
mov eax, ebx
call fcn.0040eb18
mov eax, dword [ebx + 0x30]
call fcn.0040f17c
mov edx, eax
mov eax, ebx
call fcn.0040eb5c
lea ecx, [ebp - 0x68]
mov eax, dword [ebx + 0x30]
mov edx, 7
call fcn.0040e400
push dword [ebp - 0x64]
push dword [ebp - 0x68]
mov eax, ebx
mov edx, 7
call fcn.0040e414
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x10]
xor edi, edi
cmp dword [ebp - 0x18], 0
jle 0x49059c
cmp dword [ebp - 0x1c], 0
jne 0x4904e0
push 1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x60]
push eax
call sub.user32.dll_ShowWindow
lea edx, [ebp - 0x6c]
mov eax, 2
call fcn.0044d254
mov eax, dword [ebp - 0x6c]
call fcn.0040712c
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x60]
push eax
call sub.user32.dll_SetWindowTextW
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
call fcn.00477500
mov esi, eax
dec esi
test esi, esi
jl 0x49062b
inc esi
xor ebx, ebx
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
cmp byte [eax + 0xc], 0
jne 0x49058f
push 0
push 0
push 0
push 0
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.004890b8
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x490546
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00489efc
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xb8]
mov dword [edx + edi*4], eax
inc edi
mov eax, dword [ebp - 0x14]
call fcn.0040eab0
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040eb40
pop edx
add edx, eax
push edx
mov eax, dword [ebp - 0xc]
call fcn.0040f17c
pop edx
call fcn.0040b9e4
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0040f1b4
inc ebx
dec esi
jne 0x4904fb
jmp 0x49062b
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x60]
push eax
call sub.user32.dll_ShowWindow
push 0x490a38
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x60]
push eax
call sub.user32.dll_SetWindowTextW
lea edx, [ebp - 0x70]
mov eax, 3
call fcn.0044d254
mov eax, dword [ebp - 0x70]
push eax
lea edx, [ebp - 0x74]
mov eax, 4
call fcn.0044d254
mov eax, dword [ebp - 0x74]
push eax
push 0x12
push 0
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.004890b8
call fcn.0040eb40
lea edx, [ebp - 0x78]
mov eax, 5
call fcn.0044d254
mov eax, dword [ebp - 0x78]
push eax
lea edx, [ebp - 0x7c]
mov eax, 6
call fcn.0044d254
mov eax, dword [ebp - 0x7c]
push eax
push 0x13
push 0
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.004890b8
call fcn.0040eb40
push 0
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 0x1c]
push eax
call sub.user32.dll_InvalidateRect
jmp 0x490655
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x44]
mov edx, 2
call fcn.0040ec44
call fcn.0040ba84
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x44]
call fcn.0040f724
cmp eax, 2
jg 0x490640
cmp dword [ebp - 0x1c], 0
je 0x4909a5
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x60]
push eax
call sub.user32.dll_ShowWindow
push 0x490a38
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x60]
push eax
call sub.user32.dll_SetWindowTextW
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x44]
mov dl, 1
call fcn.0040e698
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x68], 0
jne 0x4906b9
call sub.user32.dll_CreatePopupMenu
mov edx, dword [ebp - 8]
mov dword [edx + 0x68], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x6c], 0
jne 0x4906cd
call sub.user32.dll_CreatePopupMenu
mov edx, dword [ebp - 8]
mov dword [edx + 0x6c], eax
push ebp
call fcn.0048fd6c
pop ecx
xor edi, edi
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
call fcn.00477500
mov esi, eax
dec esi
test esi, esi
jl 0x4908ed
inc esi
xor ebx, ebx
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
cmp byte [eax + 0xc], 1
jne 0x4908e5
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
cmp byte [eax + 0x5d], 0
je 0x4908e5
push 0
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
mov ecx, eax
mov edx, 0x490a48
mov eax, dword [0x4c26e0]
call fcn.0046d368
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x30
call fcn.004047e8
mov dword [ebp - 0x60], 0x30
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
mov eax, dword [eax + 0x28]
call fcn.0040712c
mov dword [ebp - 0x3c], eax
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x490796
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
cmp dword [eax + 0x108], 0
je 0x4907e2
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
mov eax, dword [eax + 0x28]
call fcn.0040712c
push eax
mov eax, ebx
or eax, 0x100
push eax
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x68]
push eax
call sub.user32.dll_AppendMenuW
inc dword [ebp - 0x24]
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
cmp dword [eax + 0x104], 0
je 0x49082b
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
mov eax, dword [eax + 0x28]
call fcn.0040712c
push eax
mov eax, ebx
or eax, 0x200
push eax
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x6c]
push eax
call sub.user32.dll_AppendMenuW
inc dword [ebp - 0x28]
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
mov edx, dword [ebp - 0x18]
add edx, edi
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0xb8]
mov dword [ecx + edx*4], eax
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
call fcn.00473d68
test eax, eax
jle 0x4908b4
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
call fcn.00473d68
dec eax
test eax, eax
jl 0x4908d5
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00488e58
mov dword [ebp - 0x14], eax
inc dword [ebp - 0x20]
dec dword [ebp - 0x30]
jne 0x490887
jmp 0x4908d5
push 0xffffffffffffffff
mov eax, dword [0x4c26e0]
mov eax, dword [eax + 0x40]
mov edx, ebx
call fcn.0047e56c
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00488e58
mov dword [ebp - 0x14], eax
test edi, edi
jne 0x4908e4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.00489fa4
inc edi
inc ebx
dec esi
jne 0x4906f1
cmp dword [ebp - 0x24], 0
je 0x490926
cmp dword [ebp - 0x28], 0
je 0x490926
lea edx, [ebp - 0x84]
mov eax, 0x13
call fcn.0044d254
mov eax, dword [ebp - 0x84]
call fcn.0040712c
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x4909c8
cmp dword [ebp - 0x24], 0
je 0x49095c
cmp dword [ebp - 0x28], 0
jne 0x49095c
lea edx, [ebp - 0x88]
mov eax, 0x14
call fcn.0044d254
mov eax, dword [ebp - 0x88]
call fcn.0040712c
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x4909c8
cmp dword [ebp - 0x24], 0
jne 0x490992
cmp dword [ebp - 0x28], 0
je 0x490992
lea edx, [ebp - 0x8c]
mov eax, 0x15
call fcn.0044d254
mov eax, dword [ebp - 0x8c]
call fcn.0040712c
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x4909c8
push 0x490a38
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x64]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x4909c8
cmp byte [ebp - 0x29], 0
je 0x4909bb
push ebp
call fcn.0048fd6c
pop ecx
push ebp
call fcn.0048fea0
pop ecx
jmp 0x4909c8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x44]
xor edx, edx
call fcn.0040e698
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.0040e698
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
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 0x490a1e
lea eax, [ebp - 0x8c]
mov edx, 3
call fcn.00407098
lea eax, [ebp - 0x7c]
mov edx, 5
call fcn.00407098
lea eax, [ebp - 0x10]
call fcn.00407090
ret