Function at 0x4054a8
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
mov edi, ecx
call fcn.004053c1
test eax, eax
jl 0x40578e
push esi
push dword [ebp - 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0xce
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, edi
call fcn.00404e43
test eax, eax
jl 0x40578d
mov ecx, edi
call fcn.00404f0f
test eax, eax
jl 0x40578d
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x1388
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
push eax
call ebx
lea eax, [ebp - 0x48]
push eax
push 0xe1
push dword [ebp + 8]
call esi
push eax
call ebx
lea eax, [ebp - 0x38]
push eax
push 0xcb
push dword [ebp + 8]
call esi
push eax
call ebx
lea eax, [ebp - 0x58]
push eax
push 0xcc
push dword [ebp + 8]
call esi
push eax
call ebx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x54]
sub ecx, eax
mov dword [ebp - 0xc], eax
sub ebx, edx
sub eax, ebx
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [edi + 0x2c], 0
jne 0x4055ab
push 0
push 0x1388
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4055d1
mov ecx, edi
call fcn.00404ea9
test eax, eax
jl 0x40578c
push dword [edi + 0x28]
add dword [ebp - 0x14], ebx
add dword [ebp - 0xc], ebx
push 0x1388
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CheckDlgButton]
push 1
xor eax, eax
push eax
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push eax
push 0xe1
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
push eax
call ebx
cmp dword [edi + 0x30], 0
jne 0x40560c
push 0
push 0xcb
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40566c
mov ecx, edi
call fcn.00404f8f
test eax, eax
jl 0x40578c
push 1
xor eax, eax
push eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
push 0xcb
push dword [ebp + 8]
call esi
push eax
call ebx
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], eax
cmp dword [edi + 0x2c], 0
je 0x40565b
xor eax, eax
cmp dword [edi + 0x28], eax
sete al
push eax
push 0xcb
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [edi + 0x40]
push 0xcb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CheckDlgButton]
cmp dword [edi + 0x38], 0
jne 0x405687
push 0
push 0xcc
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4056e7
mov ecx, edi
call fcn.00404ff5
test eax, eax
jl 0x40578c
push 1
xor eax, eax
push eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
push 0xcc
push dword [ebp + 8]
call esi
push eax
call ebx
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], eax
cmp dword [edi + 0x2c], 0
je 0x4056d6
xor eax, eax
cmp dword [edi + 0x28], eax
sete al
push eax
push 0xcc
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [edi + 0x44]
push 0xcc
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CheckDlgButton]
cmp dword [edi + 0x34], 0
jne 0x405702
push 0
push 0xcd
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40575e
mov ecx, edi
call fcn.0040505b
test eax, eax
jl 0x40578c
push 1
xor eax, eax
push eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push eax
push 0xcd
push dword [ebp + 8]
call esi
push eax
call ebx
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], eax
cmp dword [edi + 0x2c], 0
je 0x40574d
xor eax, eax
cmp dword [edi + 0x28], eax
sete al
push eax
push 0xcd
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [edi + 0x44]
push 0xcd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov eax, dword [ebp + 8]
lea esi, [edi + 0x4c]
push esi
push 0x4018f8
push 0x17
push 0
push 0x401908
mov dword [edi + 0x24], eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40578c
mov esi, dword [esi]
mov eax, dword [esi]
add edi, 8
push edi
push esi
call dword [eax + 0x18]
pop ebx
pop esi
cmp dword [ebp - 4], 0
pop edi
je 0x40579e
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
leave
ret 0xc