Function at 0x52ed48
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
mov edx, dword [0x50ed1c]
call fcn.00404fc0
xor eax, eax
push ebp
push 0x52f087
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0052e4b0
test al, al
jne 0x52edda
push 0x40010
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.004493d0
mov eax, dword [ebp - 0x44]
call fcn.004049fc
push eax
push 0x52f098
mov eax, dword [0x53d04c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_MessageBoxA_1
mov eax, dword [ebp - 4]
call fcn.00466abc
jmp 0x52f056
xor eax, eax
push ebp
push 0x52ee2f
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.005269d4
test al, al
je 0x52ee25
cmp byte [ebp + 0xc], 0
je 0x52ee0f
push 0
push 0
lea edx, [ebp - 0x18]
mov ecx, 2
mov eax, 0x52f0e8
call fcn.00532238
jmp 0x52ee25
push 0
push 0
lea edx, [ebp - 0x18]
mov ecx, 2
mov eax, 0x52f0e8
call fcn.00532238
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52ee39
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0052e5f0
cmp byte [ebp + 8], 0
jne 0x52eeb8
mov edx, dword [0x53cc0c]
mov dl, byte [edx]
mov eax, dword [ebp - 4]
call fcn.0052e710
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x20
call fcn.00402fb4
mov eax, dword [0x53cc64]
mov edx, dword [eax]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x2c], edx
mov eax, dword [0x53cc0c]
mov al, byte [eax]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x414]
lea eax, [ebp - 0x48]
mov ecx, 0x52f0fc
call fcn.00404848
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
mov cl, 1
call fcn.0050f324
cmp dword [ebp - 0x40], 1
jne 0x52eeb8
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 4]
call fcn.00531fac
mov eax, dword [ebp - 4]
call fcn.00466c5c
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.0052fb58
mov dword [ebp - 0x14], 1
lea edx, [ebp - 0x50]
mov eax, dword [0x53d04c]
mov eax, dword [eax]
call fcn.0046a9fc
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.00409bb4
lea eax, [ebp - 0x4c]
mov edx, 0x52f110
call fcn.00404804
mov eax, dword [ebp - 0x4c]
call fcn.00409770
test al, al
je 0x52ef8f
lea edx, [ebp - 0x58]
mov eax, dword [0x53d04c]
mov eax, dword [eax]
call fcn.0046a9fc
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.00409bb4
lea eax, [ebp - 0x54]
mov edx, 0x52f110
call fcn.00404804
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x50bb28]
call fcn.00438c40
mov dword [ebp - 0x10], eax
push 0x52f128
lea eax, [ebp - 0x60]
push eax
mov ecx, 0x52f138
mov edx, 0x52f14c
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.00408b9c
mov eax, dword [ebp - 0x5c]
mov edx, 0x52f15c
call fcn.00404948
jne 0x52ef87
mov eax, dword [ebp - 4]
call fcn.0052e6d0
mov dword [ebp - 0x14], 2
mov eax, dword [ebp - 0x10]
call fcn.00403628
mov eax, dword [0x53d04c]
mov eax, dword [eax]
call fcn.00469d14
push 0
mov eax, dword [0x53d04c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
push 0x52f168
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [0x53d2dc]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0050d7d0
mov edx, dword [ebp - 0x64]
mov eax, dword [0x53d2cc]
mov eax, dword [eax]
call fcn.00526270
mov eax, dword [ebp + 0x10]
call fcn.00409770
test al, al
je 0x52f01c
mov eax, dword [ebp + 0x10]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x52cd2c]
call fcn.00530a3c
mov edx, dword [ebp - 4]
mov dword [edx + 0x66c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x66c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 0x1c]
call fcn.004238e0
jmp 0x52f056
cmp byte [ebp + 0xc], 0
je 0x52f03d
push 0
push 1
push 0xd8c
mov eax, dword [0x53f58c]
call fcn.0044fc70
push eax
call sub.user32.dll_PostMessageA
jmp 0x52f056
push 0
push 0
push 0xd8c
mov eax, dword [0x53f58c]
call fcn.0044fc70
push eax
call sub.user32.dll_PostMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52f08e
lea eax, [ebp - 0x64]
mov edx, 8
call fcn.00404560
lea eax, [ebp - 0x44]
call fcn.0040453c
lea eax, [ebp - 0x40]
mov edx, dword [0x50ed1c]
call fcn.00405090
ret