Function at 0x4d61a0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c
push ebp
mov ebp, ecx
mov ecx, dword [0x59a15c]
call fcn.004dbea0
test eax, eax
jne 0x4d61ba
pop ebp
add esp, 0x2c
ret
push ebx
push esi
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
mov edx, str.main
xor ecx, ecx
call fcn.004f79c0
mov edi, dword [esp + 0x1c]
test edi, edi
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
jne 0x4d62b9
test ebx, ebx
jne 0x4d62b9
test eax, eax
jne 0x4d62b9
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4d62b9
lea ecx, [esp + 0x2c]
mov dword [0x599098], eax
call fcn.00538410
mov ecx, dword [esp + 0x34]
cmp ecx, 0x2ee
jge 0x4d6252
lea esi, [ecx + ecx*2]
shl esi, 1
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov ebx, edx
jmp 0x4d6260
lea eax, [ecx + ecx*2]
cdq
and edx, 3
add eax, edx
mov ebx, eax
sar ebx, 2
mov eax, ecx
mov ecx, dword [esp + 0x38]
sub eax, ebx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp ecx, 0x226
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edi
jge 0x4d6290
lea edx, [ecx + ecx*8]
shl edx, 1
mov eax, 0x6bca1af3
imul edx
sar edx, 3
jmp 0x4d62a1
lea esi, [ecx + ecx*2]
shl esi, 1
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
sub eax, edx
mov dword [esp + 0x18], edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov ecx, dword [0x5a13fc]
test ecx, ecx
je 0x4d62cb
mov dword [esp + 0x20], 3
mov ecx, dword [0x5a1afc]
mov edx, dword [esp + 0x18]
push 0
push ecx
push 0
push 0
push edx
push ebx
push eax
push edi
push 0x6cf0000
push 0x589eb8
push 0x589ae4
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x5a1b00], eax
jne 0x4d630a
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x2c
ret
call fcn.004cbe70
test eax, eax
je 0x4d6300
call fcn.004d5c90
test eax, eax
je 0x4d6300
call fcn.00526d00
test eax, eax
mov dword [0x5a0f50], eax
je 0x4d6300
call fcn.0051d980
test eax, eax
mov dword [0x59f690], eax
je 0x4d6300
mov eax, dword [esp + 0x20]
cmp eax, 2
jne 0x4d6345
push 3
jmp 0x4d6383
cmp eax, 1
je 0x4d6359
cmp eax, 3
je 0x4d6359
mov ecx, dword [0x5a1b00]
push ebp
push ecx
jmp 0x4d6389
mov ecx, dword [0x5a13f4]
test ecx, ecx
jne 0x4d6368
cmp eax, 3
jne 0x4d6381
mov ecx, 1
call fcn.0052b760
test eax, eax
je 0x4d6381
mov edx, dword [0x5a1b00]
push 0
push edx
jmp 0x4d6389
push 7
mov eax, dword [0x5a1b00]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5a13f8]
test eax, eax
je 0x4d63a2
mov ecx, 1
call fcn.0052b760
mov ecx, dword [0x5a1b04]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push ecx
call esi
mov edx, dword [0x5a1b00]
push edx
call esi
call fcn.0041a3c0
mov ecx, dword [0x5a1b00]
xor edx, edx
call fcn.004c1950
mov eax, dword [0x59a15c]
push eax
push 0
push 0
xor edx, edx
mov ecx, str.Status_Window
call fcn.0053c810
mov ecx, dword [0x59a15c]
mov dword [ecx], eax
mov ecx, dword [0x59a15c]
cmp dword [ecx], 0
je 0x4d6300
call fcn.004bbbd0
mov edx, dword [0x5a1b00]
push edx
call esi
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0x2c
ret