Function at 0x51be84
Capabilities:
Hide graphical window

Disassembly:
push 0xa0
mov eax, 0x54f928
call fcn.00524a7c
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov word [0x6e44b4], ax
mov eax, dword [ebp + 0x10]
push 0x7f00
mov word [0x6e44b8], ax
mov eax, dword [0x6e209c]
push ecx
mov byte [0x6e20a4], 1
mov dword [0x6e24b4], 0x51bb39
mov dword [0x6e24bc], 0x51bb67
mov dword [0x6e2518], 0x51bb0e
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0xa8], 0x51b6a4
mov dword [ebp - 0x9c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 7
mov dword [ebp - 0x94], eax
xor edx, edx
pop ecx
xor eax, eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov word [ebp - 0x50], ax
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
push ebx
call fcn.0048ae60
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.0048ae60
add esp, 0x10
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
cmovae eax, dword [ebp - 0x50]
cmp dword [ebp - 0x24], 8
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
xor esi, esi
push esi
mov dword [ebp - 0x8c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x51bf8e
push eax
jmp 0x51bf93
push 0x97
push dword [0x6e209c]
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push esi
test ax, ax
jne 0x51bfd4
push 1
lea ecx, [ebp - 0x38]
call fcn.0051b6d1
push esi
push 1
lea ecx, [ebp - 0x50]
call fcn.0051b6d1
xor eax, eax
jmp 0x51c1c7
push dword [0x6e209c]
or edi, 0x2000000
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push esi
push 1
lea ecx, [ebp - 0x38]
mov dword [0x6e2098], eax
call fcn.0051b6d1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
push esi
push 1
call fcn.0051b6d1
cmp dword [0x6e2098], esi
je 0x51bfcd
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
call esi
sub eax, dword [ebp + 0xc]
cdq
sub eax, edx
push 0x11
mov ebx, eax
call esi
mov ecx, dword [ebp + 0x10]
sub eax, ecx
cdq
sub eax, edx
mov edi, eax
xor eax, eax
push ecx
push dword [ebp + 0xc]
sar ebx, 1
push eax
cmovs ebx, eax
sar edi, 1
push eax
cmovs edi, eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xffffffffffffffec
push dword [0x6e2098]
call esi
push eax
push dword [0x6e2098]
call dword [sym.imp.USER32.dll_GetMenu]
neg eax
sbb eax, eax
neg eax
push eax
push 0xfffffffffffffff0
push dword [0x6e2098]
call esi
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push 0
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push edi
push ebx
push dword [0x6e2098]
call dword [sym.imp.USER32.dll_MoveWindow]
push dword [0x6e20a0]
push dword [0x6e2098]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x6e2098]
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.00471100
test eax, eax
je 0x51bfcd
xor ebx, ebx
lea edi, [ebp - 0x80]
push 6
xor eax, eax
mov dword [ebp - 0x84], ebx
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x51c1bc
push eax
push dword [0x6e209c]
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, eax
jmp 0x51c171
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x51c168
cmp dword [ebp - 0x80], 0x12
je 0x51c1c4
lea eax, [ebp - 0x84]
push eax
push esi
push dword [0x6e2098]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x51c171
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x51c171
call fcn.00470d90
test eax, eax
je 0x51c1c4
cmp byte [0x582188], bl
jne 0x51c114
jmp 0x51c1c4
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x51c1b3
cmp dword [ebp - 0x80], 0x12
je 0x51c1c4
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x51c1bc
call fcn.00470d90
test eax, eax
je 0x51c1c4
cmp byte [0x582188], bl
jne 0x51c17b
mov eax, dword [ebp - 0x7c]
call fcn.00524a37
ret