Function at 0x42872b
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x628
push ebx
push esi
mov esi, dword [esp + 0x634]
push edi
push ebp
cmp dword [esi + 0x1dd0], 1
jne 0x427d82
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x430]
mov dword [esi + 0x3e0], eax
dec eax
test eax, eax
jg 0x427d70
xor eax, eax
mov dword [esi + 0x3e8], 0
mov dword [esi + 0x3d4], eax
jmp 0x427de7
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x1dc8], 1
mov cl, byte [eax + 4]
cmp ecx, 0x21
je 0x427db5
push esi
cmp ecx, 0x31
je 0x427dcd
call fcn.0042b570
add esp, 4
test eax, eax
je 0x427ddd
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x628
ret
push esi
call fcn.0042b1d0
add esp, 4
test eax, eax
je 0x427ddd
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x628
ret
call fcn.0042b1d0
add esp, 4
test eax, eax
jne 0x428845
mov dword [esi + 0x1dc8], 0
push 0
lea eax, [esi + 0x244]
push 0x148
push eax
call sub.F3BIFUTC.dll_Ordinal_6
add esp, 0xc
lea eax, [esi + 0x2c4]
push 0x432ce8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.00429a70
add esp, 4
lea ecx, [esi + 0x128]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
push ecx
push 0
push 2
mov ecx, dword [0x449c54]
push eax
push edx
push ecx
push 4
push 0
push 0x428890
push 0x203
call fcn.00402599
add esp, 0x28
mov ecx, dword [esi + 0x3a8]
lea eax, [ecx + ecx*8]
lea ecx, [ecx + eax*4]
mov eax, dword [esi + 0x3ac]
cdq
add ecx, ecx
lea edi, [eax*4]
mov dword [esi + 0x1a8], 0x2ef0000
lea ebx, [edi + edi*4]
sub eax, edx
sar eax, 1
lea edx, [esp + 0x20]
add ebx, eax
lea eax, [esp + 0x1c]
push eax
push edx
push ebx
push ecx
push 1
push 0x2ef0000
call fcn.004025f5
add esp, 0x18
lea ecx, [esi + 0xa8]
mov edx, dword [0x449c54]
push ecx
push edx
call dword [sym.imp.USER32.dll_LoadMenuA]
push 0
mov dword [esi + 0x24], eax
mov ecx, dword [0x449c54]
push ecx
push eax
mov edx, dword [0x449c60]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
push edx
push ecx
mov edx, dword [esi + 0x1a8]
push eax
lea ecx, [esi + 0x28]
push 0
lea eax, [esi + 0x128]
push 0
push edx
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x427efa
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x628
ret
push str.MenuEdit
lea eax, [esi + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x427f2f
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 4
mov edi, 1
jmp 0x427f7c
push 0x432cd0
lea eax, [esi + 0xa8]
push eax
mov edi, 1
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x427f64
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 4
jmp 0x427f7c
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 3
push str.MenuEdit
lea eax, [esi + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x427f98
push 0
push 0x53
jmp 0x427fb6
push 0x432cd0
lea eax, [esi + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0
test eax, eax
jne 0x427fb4
push 0x54
jmp 0x427fb6
push 0x50
lea eax, [esp + 0x30]
push eax
call sub.F3BIFUTC.dll_Ordinal_6
lea eax, [esp + 0x34]
add esp, 0xc
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
mov ebp, eax
push 0
lea eax, [esp + 0x2c]
push 1
push eax
call sub.F3BIFUTC.dll_Ordinal_6
add esp, 0xc
lea eax, [esi + 0xa8]
push str.MenuBrows
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
lea eax, [esp + 0x28]
push eax
jne 0x428022
push 0xd6
push 0
push 0xd6
jmp 0x42802e
push 0xd4
push 0
push 0xd4
push ebp
mov ebx, dword [sym.imp.USER32.dll_ModifyMenuA]
call ebx
push edi
push ebp
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [esp + 0x24], eax
push 0
lea eax, [esp + 0x2c]
push 0x15
push eax
call sub.F3BIFUTC.dll_Ordinal_6
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x30]
add esp, 0xc
push eax
push ecx
push 0x410
push edi
push ebp
call ebx
lea ecx, [esp + 0x28]
push 0
push 0x16
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
push 0xcc
push 0
push 0xcc
push ebp
call ebx
lea ecx, [esp + 0x28]
push 0
push 0x17
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
push 0x131
push 0
push 0x131
push ebp
call ebx
lea ecx, [esp + 0x28]
push 0
push 0x18
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
push 0x12f
push 0
push 0x12f
push ebp
call ebx
push 0
lea ecx, [esp + 0x2c]
push 0x19
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
push 0x12e
push 0
push 0x12e
push ebp
call ebx
lea ecx, [esp + 0x28]
push 0
push 0x1a
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
push 0x12d
push 0
push 0x12d
push ebp
call ebx
lea ecx, [esp + 0x28]
push 0
push 0x1b
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
push 0x130
push 0
push 0x130
push ebp
call ebx
cmp dword [esp + 0x10], 0
je 0x42823b
mov eax, dword [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
push 0
lea eax, [esp + 0x2c]
push 0x22
push eax
call sub.F3BIFUTC.dll_Ordinal_6
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
push edi
push 0x410
push ecx
push ebp
call ebx
lea ecx, [esp + 0x28]
push 0
push 0x23
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
push 0x132
push 0
push 0x132
push ebp
call ebx
lea ecx, [esp + 0x28]
push 0
push 0x25
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
push 0x134
push 0
push 0x134
push ebp
call ebx
lea ecx, [esp + 0x28]
push 0
push 0x24
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
push 0x133
push 0
push 0x133
push ebp
call ebx
push 0
push 0x26
lea ecx, [esp + 0x30]
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
push 0x135
push 0
push 0x135
push ebp
call ebx
lea ecx, [esp + 0x28]
push 0
push 0x27
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
push 0x136
push 0
push 0x136
push ebp
call ebx
mov eax, dword [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
push 0
lea eax, [esp + 0x2c]
push 0x28
push eax
call sub.F3BIFUTC.dll_Ordinal_6
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push eax
push edi
push 0x410
push ecx
push ebp
call ebx
lea ecx, [esp + 0x28]
push 0
push 0x29
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
push 0x192
push 8
push 0x192
push ebp
call ebx
lea ecx, [esp + 0x28]
push 0
push 0x2a
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
push 0x193
push 0
push 0x193
push ebp
call ebx
lea ecx, [esp + 0x28]
push 0
push 0x2b
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea ecx, [esp + 0x34]
add esp, 0xc
push ecx
push 0xd2
push 0
push 0xd2
push ebp
call ebx
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
push 0
lea ecx, [esp + 0x2c]
push 0x11
push ecx
call sub.F3BIFUTC.dll_Ordinal_6
lea eax, [esp + 0x34]
mov ecx, dword [esp + 0x24]
add esp, 0xc
push eax
push edi
push 0x410
push ecx
push ebp
call ebx
push str.MenuEdit
lea ecx, [esi + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x42832d
push 0
push 0x150
jmp 0x428351
push 0x432cd0
lea eax, [esi + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0
test eax, eax
jne 0x42834c
push 0x151
jmp 0x428351
push 0x14f
lea eax, [esp + 0x30]
push eax
call sub.F3BIFUTC.dll_Ordinal_6
lea eax, [esp + 0x34]
add esp, 0xc
push eax
push 0xdd
push 0
push 0xdd
push ebp
call ebx
lea eax, [esp + 0x28]
push 0
push 0x13
push eax
call sub.F3BIFUTC.dll_Ordinal_6
lea eax, [esp + 0x34]
add esp, 0xc
push eax
push 0xde
push 0
push 0xde
push ebp
call ebx
lea eax, [esp + 0x28]
push 0
push 0x14
push eax
call sub.F3BIFUTC.dll_Ordinal_6
lea eax, [esp + 0x34]
add esp, 0xc
push eax
push 0xd3
push 0
push 0xd3
push ebp
call ebx
mov eax, dword [esi + 0x20]
push esi
push 0
lea ebx, [esi + 0x1578]
mov dword [0x449c48], eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
cmp word [ebx], 0
je 0x42843b
lea ebp, [esi + 0x1478]
lea edi, [esi + 0x1438]
push 0
mov eax, dword [0x449c54]
push eax
mov ecx, dword [esi + 0x20]
xor eax, eax
add ebx, 2
mov ax, word [ebx - 2]
add edi, 4
push eax
push ecx
push 0
push 0
push 0
push 0
push 0x50010000
push ebp
push str.button
add ebp, 0x10
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
mov dword [edi - 4], eax
mov ecx, dword [esi + 0x240]
push ecx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp word [ebx], 0
jne 0x4283e9
cmp dword [esi + 0x1dd0], 1
mov eax, dword [esi]
jne 0x4284cf
xor ecx, ecx
mov cl, byte [eax + 4]
cmp ecx, 0x11
jl 0x42848d
cmp ecx, 0x12
jle 0x42845e
cmp ecx, 0x21
jne 0x42848d
push 0
mov eax, dword [esi + 0x1438]
push eax
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
call edi
push 1
mov ecx, dword [esi + 0x24]
push 0xcc
push 1
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
mov ebx, dword [sym.imp.USER32.dll_EnableMenuItem]
call ebx
jmp 0x428499
mov ebx, dword [sym.imp.USER32.dll_EnableMenuItem]
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 4]
cmp byte [eax + 0x41b], 0
jne 0x428773
push 0
mov eax, dword [esi + 0x1440]
push eax
call edi
push 1
mov eax, dword [esi + 0x24]
push 0x136
push 2
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebx
jmp 0x428773
xor ecx, ecx
mov cl, byte [eax + 4]
sub ecx, 0x11
cmp ecx, 0x20
ja case.0x4284e8.20
xor eax, eax
mov al, byte [ecx + 0x428860]
jmp dword [eax*4 + 0x428850]
push 0
mov eax, dword [esi + 0x1438]
push eax
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
call edi
push 0
mov ecx, dword [esi + 0x143c]
push ecx
call edi
push 0
mov eax, dword [esi + 0x1444]
push eax
call edi
push 0
mov eax, dword [esi + 0x144c]
push eax
call edi
push 1
mov eax, dword [esi + 0x24]
push 0xcc
push 1
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
mov ebx, dword [sym.imp.USER32.dll_EnableMenuItem]
call ebx
push 1
mov eax, dword [esi + 0x24]
push 0x131
push 1
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebx
push 1
mov eax, dword [esi + 0x24]
push 0x12e
push 1
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebx
push 1
mov eax, dword [esi + 0x24]
push 0x130
push 1
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebx
cmp dword [esi + 0x1ac], 1
jne 0x4285eb
push 0
mov eax, dword [esi + 0x1454]
push eax
call edi
push 0
mov eax, dword [esi + 0x1458]
push eax
call edi
push 0
mov eax, dword [esi + 0x145c]
push eax
call edi
push 1
mov eax, dword [esi + 0x24]
push 0x133
push 2
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebx
push 1
mov eax, dword [esi + 0x24]
push 0x135
push 2
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebx
push 1
mov eax, dword [esi + 0x24]
push 0x136
push 2
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebx
cmp dword [esi + 0x1ac], 0
jne 0x428773
push 0
mov eax, dword [esi + 0x24]
push 0x192
push 2
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
mov ebp, dword [sym.imp.USER32.dll_CheckMenuItem]
call ebp
push 0
mov eax, dword [esi + 0x24]
push 0x193
push 2
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebp
push 1
mov eax, dword [esi + 0x24]
push 0x192
push 2
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebx
push 1
mov eax, dword [esi + 0x24]
push 0x193
push 2
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebx
jmp 0x428773
push 0
mov eax, dword [esi + 0x1438]
push eax
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
call edi
push 1
mov ecx, dword [esi + 0x24]
push 0xcc
push 1
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
mov ebx, dword [sym.imp.USER32.dll_EnableMenuItem]
call ebx
cmp dword [esi + 0x1ac], 1
jne 0x4286be
mov eax, dword [esi + 4]
cmp byte [eax + 0x41b], 0
jne 0x4286be
push 0
mov eax, dword [esi + 0x145c]
push eax
call edi
push 1
mov eax, dword [esi + 0x24]
push 0x136
push 2
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebx
cmp dword [esi + 0x1ac], 0
jne 0x428773
push 0
mov eax, dword [esi + 0x24]
push 0x192
push 2
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
mov ebp, dword [sym.imp.USER32.dll_CheckMenuItem]
call ebp
push 0
mov eax, dword [esi + 0x24]
push 0x193
push 2
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebp
push 1
mov eax, dword [esi + 0x24]
push 0x192
push 2
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebx
push 1
mov eax, dword [esi + 0x24]
push 0x193
push 2
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call ebx
jmp 0x428773
cmp dword [esi + 0x1ac], 1
jne case.0x4284e8.20
mov eax, dword [esi + 4]
cmp byte [eax + 0x41b], 0
jne case.0x4284e8.20
push 0
mov eax, dword [esi + 0x145c]
push eax
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
call edi
push 1
mov ecx, dword [esi + 0x24]
push 0x136
push 2
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
jmp 0x428773
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x20]
push eax
call fcn.00402674
add esp, 4
mov eax, dword [esi + 0x20]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
mov ecx, dword [0x449c60]
push ecx
call edi
lea ecx, [esp + 0x28]
push 0
push 0
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push ecx
call edi
cmp eax, 1
jne 0x428800
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4287dc
lea eax, [esp + 0x28]
mov edx, dword [esi + 0x10]
push eax
push edx
push ecx
call ebx
cmp eax, 1
je 0x4287ee
lea eax, [esp + 0x28]
push eax
call ebp
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x28]
push 0
push 0
push 0
push eax
call edi
cmp eax, 1
je 0x4287c4
mov eax, dword [esi + 0x240]
test eax, eax
je 0x42881b
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x240], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x428830
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov dword [esi + 0x24], 0
mov eax, dword [0x449c54]
add esi, 0x128
push eax
push esi
call dword [sym.imp.USER32.dll_UnregisterClassA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x628
ret