Function at 0x4a3038
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov esi, 0x4fd9ec
call fcn.0042aa18
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 0x4fa7ab
call fcn.004e8fc4
cmp dword [ebp - 4], 0
jne 0x4a313e
cmp dword [ebp - 8], 0
jne 0x4a313e
cmp dword [ebp - 0xc], 0
jne 0x4a313e
cmp dword [ebp - 0x10], 0
jne 0x4a313e
xor edx, edx
mov dword [0x4fa6b4], edx
lea ecx, [ebp - 0x34]
push ecx
call fcn.004eb300
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x2ee
jge 0x4a30d6
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 0x4a30d1
adc ecx, 0
mov dword [ebp - 4], ecx
jmp 0x4a30f3
lea eax, [ecx + ecx*2]
test eax, eax
jns 0x4a30e0
add eax, 3
sar eax, 2
mov dword [ebp - 8], eax
sub ecx, dword [ebp - 8]
sar ecx, 1
jns 0x4a30f0
adc ecx, 0
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x226
jge 0x4a311f
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 0x4a311a
adc ecx, 0
mov dword [ebp - 0xc], ecx
jmp 0x4a313e
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 0x4a313b
adc ecx, 0
mov dword [ebp - 0xc], ecx
cmp dword [0x515ee8], 0
je 0x4a3160
cmp dword [0x4fd510], 0
je 0x4a3160
cmp dword [0x4fd520], 0
je 0x4a3160
mov dword [ebp - 0x14], 3
push 0
mov eax, dword [0x4fd9e8]
push eax
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [ebp - 4]
push edx
push 0x2cf0000
push 0x4fda48
push 0x4fda48
push 0
call sub.USER32.dll_CreateWindowExA
mov ebx, eax
mov dword [esi], ebx
test ebx, ebx
jne 0x4a31a1
xor eax, eax
jmp 0x4a34c5
push 8
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.00401198
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0x320
lea eax, [ebp - 0x24]
push eax
mov edx, dword [0x4fd9e8]
push edx
push 0
mov ecx, dword [esi]
push ecx
push 0
push 0
push 0
push 0
push 0x52300001
push 0x4fa7bc
push 0x4fa7b1
push 0
call sub.USER32.dll_CreateWindowExA
mov ebx, eax
mov dword [0x4fd9f0], ebx
test ebx, ebx
jne 0x4a31fe
xor eax, eax
jmp 0x4a34c5
call fcn.004dee74
call fcn.004d8d1c
cmp dword [0x4fa6c4], 0
je 0x4a3243
mov edx, dword [esi]
push edx
call sub.USER32.dll_GetMenu
mov ebx, eax
push 0x23
mov eax, dword [0x4fa6c4]
push eax
call sub.USER32.dll_LoadMenuA
mov edi, eax
mov dword [0x5155ac], edi
test edi, edi
je 0x4a3243
push edi
mov eax, dword [esi]
push eax
call sub.USER32.dll_SetMenu
push ebx
call sub.USER32.dll_DestroyMenu
mov edx, dword [esi]
push edx
call sub.USER32.dll_GetMenu
mov ebx, eax
mov dword [0x5155ac], ebx
push 0
push ebx
call sub.USER32.dll_GetSubMenu
mov dword [0x5155b0], eax
push 1
mov eax, dword [0x5155ac]
push eax
call sub.USER32.dll_GetSubMenu
mov dword [0x5155b4], eax
push 2
mov edx, dword [0x5155ac]
push edx
call sub.USER32.dll_GetSubMenu
mov dword [0x5155b8], eax
push 3
mov ecx, dword [0x5155ac]
push ecx
call sub.USER32.dll_GetSubMenu
mov dword [0x5155bc], eax
push 4
mov eax, dword [0x5155ac]
push eax
call sub.USER32.dll_GetSubMenu
mov dword [0x5155c0], eax
push 0
mov edx, dword [esi]
push edx
call sub.USER32.dll_GetSystemMenu
mov edi, eax
call sub.USER32.dll_CreatePopupMenu
mov ebx, eax
test ebx, ebx
je 0x4a336a
push 0
push 0xf3d
call fcn.0041f178
push eax
push 0x9b
push 0
push ebx
call sub.USER32.dll_AppendMenuA
push 0
push 0xf3e
call fcn.0041f178
push eax
push 0x9c
push 0
push ebx
call sub.USER32.dll_AppendMenuA
push 0
push 0xf3f
call fcn.0041f178
push eax
push 0x96
push 0
push ebx
call sub.USER32.dll_AppendMenuA
push 0
push 0xf40
call fcn.0041f178
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 0x4a336a
push 0
push 0xf41
call fcn.0041f178
push eax
push 0xa0
mov eax, 8
cmp dword [0x515714], 0
jne 0x4a335c
add eax, 0xfffffff8
or eax, 0x400
push eax
push 1
push edi
call sub.USER32.dll_InsertMenuA
push 0
call fcn.004e0308
push 1
push 0
call fcn.0049d2b8
cmp dword [0x4fa69c], 0
je 0x4a3395
push 8
push 0x7e
mov edx, dword [0x5155bc]
push edx
call sub.USER32.dll_CheckMenuItem
jmp 0x4a33b1
cmp dword [0x4fa6a0], 0
je 0x4a33b1
push 8
push 0x80
mov ecx, dword [0x5155bc]
push ecx
call sub.USER32.dll_CheckMenuItem
cmp dword [0x4fa6a4], 0
je 0x4a33c9
push 8
push 0x7f
mov eax, dword [0x5155bc]
push eax
call sub.USER32.dll_CheckMenuItem
cmp dword [ebp - 0x14], 2
jne 0x4a33db
push 3
mov edx, dword [esi]
push edx
call sub.USER32.dll_ShowWindow
jmp 0x4a342a
cmp dword [ebp - 0x14], 1
je 0x4a33e7
cmp dword [ebp - 0x14], 3
jne 0x4a341e
cmp dword [0x4fd510], 0
je 0x4a3412
cmp dword [0x4fd518], 0
jne 0x4a33ff
cmp dword [ebp - 0x14], 3
jne 0x4a3412
push 1
call fcn.004e4198
push 0
mov ecx, dword [esi]
push ecx
call sub.USER32.dll_ShowWindow
jmp 0x4a342a
push 7
mov eax, dword [esi]
push eax
call sub.USER32.dll_ShowWindow
jmp 0x4a342a
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [esi]
push ecx
call sub.USER32.dll_ShowWindow
cmp dword [0x4fd514], 0
jne 0x4a3443
cmp dword [0x4fd51c], 0
je 0x4a3443
push 1
call fcn.004e4198
mov eax, dword [0x4fd9f0]
push eax
call sub.USER32.dll_UpdateWindow
mov edx, dword [esi]
push edx
call sub.USER32.dll_UpdateWindow
call fcn.0041bb8c
call fcn.0042a9a0
push 0
push 0
push 0
push 0x4fa7c0
call fcn.004ee374
mov ebx, eax
mov dword [0x4fd9fc], ebx
test ebx, ebx
jne 0x4a3480
xor eax, eax
jmp 0x4a34c5
push ebx
call sub.USER32.dll_UpdateWindow
cmp dword [0x4fccb4], 0
je 0x4a349b
call fcn.004d99e0
push 0
call fcn.004d9d04
cmp dword [0x515714], 0
je 0x4a34b8
push 0x33
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [esi]
push edx
call sub.USER32.dll_SetWindowPos
mov ecx, dword [esi]
push ecx
call sub.USER32.dll_UpdateWindow
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4