Function at 0x4a946e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov esi, 0x537420
call fcn.00423dda
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 4]
push eax
push 0x532b59
push 0
call fcn.004c748b
cmp dword [ebp - 4], 0
jne 0x4a9576
cmp dword [ebp - 8], 0
jne 0x4a9576
cmp dword [ebp - 0xc], 0
jne 0x4a9576
cmp dword [ebp - 0x10], 0
jne 0x4a9576
xor edx, edx
mov dword [0x532a4c], edx
lea ecx, [ebp - 0x34]
push ecx
call fcn.004fa0bc
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x2ee
jge 0x4a950e
mov eax, ecx
add eax, eax
lea eax, [eax + eax*2]
mov ebx, 7
cdq
idiv ebx
mov dword [ebp - 8], eax
sub ecx, dword [ebp - 8]
sar ecx, 1
jns 0x4a9509
adc ecx, 0
mov dword [ebp - 4], ecx
jmp 0x4a952b
lea eax, [ecx + ecx*2]
test eax, eax
jns 0x4a9518
add eax, 3
sar eax, 2
mov dword [ebp - 8], eax
sub ecx, dword [ebp - 8]
sar ecx, 1
jns 0x4a9528
adc ecx, 0
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x226
jge 0x4a9557
mov eax, ecx
add eax, eax
lea eax, [eax + eax*8]
mov ebx, 0x13
cdq
idiv ebx
mov dword [ebp - 0x10], eax
sub ecx, dword [ebp - 0x10]
sar ecx, 1
jns 0x4a9552
adc ecx, 0
mov dword [ebp - 0xc], ecx
jmp 0x4a9576
mov eax, ecx
add eax, eax
lea eax, [eax + eax*2]
mov ebx, 7
cdq
idiv ebx
mov dword [ebp - 0x10], eax
sub ecx, dword [ebp - 0x10]
sar ecx, 1
jns 0x4a9573
adc ecx, 0
mov dword [ebp - 0xc], ecx
cmp dword [0x532a54], 0
je 0x4a9598
cmp dword [0x536ca4], 0
je 0x4a9598
cmp dword [0x536cb4], 0
je 0x4a9598
mov dword [ebp - 0x14], 3
push 0
push dword [0x53741c]
push 0
push 0
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0x2cf0000
push 0x53747c
push 0x53747c
push 0
call sub.USER32.dll_CreateWindowExA
mov ebx, eax
mov dword [esi], ebx
test ebx, ebx
jne 0x4a95d5
xor eax, eax
jmp 0x4a990b
push 8
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.0051825c
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0x320
lea eax, [ebp - 0x24]
push eax
push dword [0x53741c]
push 0
push dword [esi]
push 0
push 0
push 0
push 0
push 0x52300001
push 0x532b6a
push str.mdiclient
push 0
call sub.USER32.dll_CreateWindowExA
mov ebx, eax
mov dword [0x537424], ebx
test ebx, ebx
jne 0x4a9630
xor eax, eax
jmp 0x4a990b
push 0x4a93fe
push 0xfffffffffffffffc
push ebx
call sub.USER32.dll_SetWindowLongA
mov dword [0x532a8c], eax
call fcn.004ec6e3
call fcn.004e5fba
cmp dword [0x532a84], 0
je 0x4a9685
push dword [esi]
call sub.USER32.dll_GetMenu
mov ebx, eax
push 0x24
push dword [0x532a84]
call sub.USER32.dll_LoadMenuA
mov edi, eax
mov dword [0x532518], edi
test edi, edi
je 0x4a9685
push edi
push dword [esi]
call sub.USER32.dll_SetMenu
push ebx
call sub.USER32.dll_DestroyMenu
push dword [esi]
call sub.USER32.dll_GetMenu
mov ebx, eax
mov dword [0x532518], ebx
push 0
push ebx
call sub.USER32.dll_GetSubMenu
mov dword [0x53251c], eax
push 1
push dword [0x532518]
call sub.USER32.dll_GetSubMenu
mov dword [0x532520], eax
push 2
push dword [0x532518]
call sub.USER32.dll_GetSubMenu
mov dword [0x532524], eax
push 3
push dword [0x532518]
call sub.USER32.dll_GetSubMenu
mov dword [0x532528], eax
push 4
push dword [0x532518]
call sub.USER32.dll_GetSubMenu
mov dword [0x53252c], eax
push 0
push dword [esi]
call sub.USER32.dll_GetSystemMenu
mov edi, eax
call sub.USER32.dll_CreatePopupMenu
mov ebx, eax
test ebx, ebx
je 0x4a97ba
push 0
push 0xf3d
call fcn.00415c87
push eax
push 0x9c
push 0
push ebx
call sub.USER32.dll_AppendMenuA
push 0x532b6e
push 0
push 0x800
push ebx
call sub.USER32.dll_AppendMenuA
push 0
push 0xf3e
call fcn.00415c87
push eax
push 0x9d
push 0
push ebx
call sub.USER32.dll_AppendMenuA
push 0
push 0xf3f
call fcn.00415c87
push eax
push 0x96
push 0
push ebx
call sub.USER32.dll_AppendMenuA
push 0
push 0xf40
call fcn.00415c87
push eax
push ebx
push 0x410
push 0
push edi
call sub.USER32.dll_InsertMenuA
call sub.USER32.dll_CreatePopupMenu
mov ebx, eax
test ebx, ebx
je 0x4a97ba
push 0
push 0xf41
call fcn.00415c87
push eax
push 0xa1
mov eax, 8
cmp dword [0x532a50], 0
jne 0x4a97ac
add eax, 0xfffffff8
or eax, 0x400
push eax
push 1
push edi
call sub.USER32.dll_InsertMenuA
push 0
call fcn.004edabb
push 1
push 0
call fcn.004a319a
cmp dword [0x532a30], 0
je 0x4a97e4
push 8
push 0x7e
push dword [0x532528]
call sub.USER32.dll_CheckMenuItem
jmp 0x4a97ff
cmp dword [0x532a34], 0
je 0x4a97ff
push 8
push 0x80
push dword [0x532528]
call sub.USER32.dll_CheckMenuItem
cmp dword [0x532a38], 0
je 0x4a9817
push 8
push 0x7f
push dword [0x532528]
call sub.USER32.dll_CheckMenuItem
cmp dword [ebp - 0x14], 2
jne 0x4a9828
push 3
push dword [esi]
call sub.USER32.dll_ShowWindow
jmp 0x4a9873
cmp dword [ebp - 0x14], 1
je 0x4a9834
cmp dword [ebp - 0x14], 3
jne 0x4a9869
cmp dword [0x536ca4], 0
je 0x4a985e
cmp dword [0x536cac], 0
jne 0x4a984c
cmp dword [ebp - 0x14], 3
jne 0x4a985e
push 1
call fcn.004f181f
push 0
push dword [esi]
call sub.USER32.dll_ShowWindow
jmp 0x4a9873
push 7
push dword [esi]
call sub.USER32.dll_ShowWindow
jmp 0x4a9873
push dword [ebp + 8]
push dword [esi]
call sub.USER32.dll_ShowWindow
cmp dword [0x536ca8], 0
jne 0x4a988c
cmp dword [0x536cb0], 0
je 0x4a988c
push 1
call fcn.004f181f
push dword [0x537424]
call sub.USER32.dll_UpdateWindow
push dword [esi]
call sub.USER32.dll_UpdateWindow
call fcn.004124ac
call fcn.00423d66
push 0
push 0
push 0
push 0x532b72
call fcn.004fd21f
mov ebx, eax
mov dword [0x537430], ebx
test ebx, ebx
jne 0x4a98c8
xor eax, eax
jmp 0x4a990b
push ebx
call sub.USER32.dll_UpdateWindow
cmp dword [0x536414], 0
je 0x4a98e3
call fcn.004e6c8c
push 0
call fcn.004e6fbd
cmp dword [0x532a50], 0
je 0x4a98ff
push 0x33
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [esi]
call sub.USER32.dll_SetWindowPos
push dword [esi]
call sub.USER32.dll_UpdateWindow
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4