Function at 0x500ca0
Capabilities:
Access peb ldr_data
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], ecx
test dl, dl
je 0x500cbc
add esp, 0xfffffff0
call fcn.00406a5c
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x500f18
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x521da8]
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x9c], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x9d], 0
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 8
mov eax, sub.user32.dll_DefWindowProcW
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x1c], 0x10
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x20], edx
mov eax, 0x500f40
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [0x521eac]
mov eax, dword [eax]
xor edx, edx
call fcn.004b453c
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], eax
mov dword [ebp - 0x54], 0x10000
lea edx, [ebp - 0x64]
mov eax, dword [0x521e04]
call fcn.0040c110
mov ecx, dword [ebp - 0x64]
mov eax, dword [0x521cb0]
mov eax, dword [eax]
mov edx, dword [eax + 4]
lea eax, [ebp - 0x60]
call fcn.00409094
mov eax, dword [ebp - 0x60]
call fcn.00408e40
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0x6cc0000
xor eax, eax
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x26a
mov dword [ebp - 0x44], 0x7c
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 4]
lea esi, [eax + 8]
lea edi, [ebp - 0x38]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
push eax
push 0x4feab0
call fcn.004991ec
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea edx, [ebp - 0x5c]
mov eax, dword [0x521cb0]
mov eax, dword [eax]
call fcn.004b6a94
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, 0xfffffffc
call fcn.0040f7bc
mov byte [0x527ad8], 0
mov eax, dword [ebp - 4]
call fcn.004fd738
mov eax, dword [ebp - 4]
add eax, 0x44
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.user32.dll_GetWindowRect
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
lea esi, [eax + 0x44]
lea edi, [edx + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.004fcd80
push 1
push 0xf060
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.user32.dll_GetSystemMenu
push eax
call sub.user32.dll_EnableMenuItem
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.user32.dll_UpdateWindow
mov dl, 1
mov eax, dword [0x4c4184]
call fcn.004c51ec
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x500ef6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x521cb0]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
call fcn.004c546c
test al, al
je 0x500ee0
mov edx, 0x500f80
mov eax, dword [ebp - 0xc]
call fcn.004c5a84
test al, al
je 0x500ed8
mov edx, 0x500f80
mov eax, dword [ebp - 0xc]
call fcn.004c597c
test al, al
je 0x500ee0
mov eax, dword [ebp - 4]
call fcn.004fcdb4
jmp 0x500ee0
mov eax, dword [ebp - 4]
call fcn.004fcdb4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500efd
mov eax, dword [ebp - 0xc]
call fcn.00406500
ret