Function at 0x5007a0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x67b0c8]
sub esp, 0x2c
push eax
call fcn.00508aa0
add esp, 4
test eax, eax
jne 0x5007b9
add esp, 0x2c
ret
push ebx
push esi
push edi
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
push str.main
push 0
call fcn.00528740
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
add esp, 0x28
test edi, edi
jne 0x5008c1
test ebx, ebx
jne 0x5008c1
test eax, eax
jne 0x5008c1
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x5008c1
lea edx, [esp + 0x28]
push edx
mov dword [0x676e78], eax
call fcn.00591160
mov ecx, dword [esp + 0x34]
add esp, 4
cmp ecx, 0x2ee
jge 0x50085a
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 0x500868
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 + 0x34]
sub eax, ebx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp ecx, 0x226
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edi
jge 0x500898
lea edx, [ecx + ecx*8]
shl edx, 1
mov eax, 0x6bca1af3
imul edx
sar edx, 3
jmp 0x5008a9
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 + 0x14], edx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0xc], eax
mov ecx, dword [0x6a0f3c]
mov edx, dword [esp + 0x14]
push 0
push ecx
push 0
push 0
push edx
push ebx
push eax
push edi
mov edi, dword [esp + 0x3c]
xor eax, eax
cmp edi, 4
setne al
dec eax
and eax, 0x1000000
or eax, 0x6cf0000
push eax
push 0x61b650
push 0x61a268
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x6a0f40], eax
jne 0x500912
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2c
ret
call fcn.005883c0
call fcn.004f3d60
test eax, eax
je 0x500909
call fcn.005001e0
test eax, eax
je 0x500909
call fcn.0056ddb0
test eax, eax
mov dword [0x696a88], eax
je 0x500909
call fcn.00560080
test eax, eax
mov dword [0x694c7c], eax
je 0x500909
call fcn.0057c9a0
test eax, eax
mov dword [0x698920], eax
je 0x500909
mov eax, dword [0x69840c]
test eax, eax
jne 0x500965
mov eax, dword [esp + 0x1c]
cmp eax, 4
jne 0x5009b9
mov eax, 3
mov dword [esp + 0x1c], eax
mov ecx, dword [0x61ade4]
test ecx, ecx
jne 0x50097d
cmp eax, 3
jne 0x5009d9
push 1
call fcn.00573450
add esp, 4
test eax, eax
je 0x5009d9
mov ecx, dword [0x6a0f40]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
jne 0x5009ad
mov edx, dword [0x6a0f40]
push 7
push edx
call esi
mov eax, dword [0x6a0f40]
push 0
push eax
call esi
jmp 0x5009e8
cmp eax, 2
jne 0x5009c2
push 3
jmp 0x5009db
cmp eax, 1
je 0x50096e
cmp eax, 3
je 0x50096e
mov edx, dword [esp + 0x3c]
mov eax, dword [0x6a0f40]
push edx
push eax
jmp 0x5009e2
push 7
mov ecx, dword [0x6a0f40]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x61ade8]
test eax, eax
je 0x5009fb
push 1
call fcn.00573450
add esp, 4
call fcn.0041f280
mov edx, dword [0x6a0f40]
push 0
push edx
call fcn.004e6700
add esp, 8
call fcn.004fee80
mov eax, dword [0x6a0f44]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call esi
mov ecx, dword [0x6a0f40]
push ecx
call esi
mov eax, dword [0x67b0c8]
push eax
push eax
push 0
push 0
push 0
push str.Status_Window
mov dword [0x6a0f8c], 0
call fcn.00596330
mov edx, dword [0x67b0c8]
mov dword [edx], eax
mov eax, dword [0x67b0c8]
mov ecx, dword [eax]
add esp, 0x18
test ecx, ecx
je 0x500909
push eax
call fcn.004dfa80
mov eax, dword [0x6a0f44]
add esp, 4
push eax
call esi
mov ecx, dword [0x6a0f40]
push ecx
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret