Function at 0x491c6c
Capabilities:
Hide graphical window

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x88
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rsi, rcx
mov rcx, qword [rcx + 0x110]
test rcx, rcx
je 0x491ca5
mov rdx, qword [rsi + 0x118]
test rdx, rdx
je 0x491ca5
mov rax, qword [rcx]
xor r8d, r8d
call qword [rax + 0x50]
mov dl, 1
mov rcx, rsi
call fcn.00491430
mov edx, 0x198
lea rcx, [rsp + 0x28]
call fcn.00460dec
mov r8, qword [rax]
mov ebx, 2
mov edx, ebx
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
mov edx, ebx
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 0xf4
lea r9d, [rbx - 1]
mov r8, r9
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0x1bc
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 0x1be
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov r11, qword [rsi]
mov rcx, rsi
call qword [r11 + 0x70]
lea rcx, [rsp + 0x40]
call fcn.004028ec
nop
lea rcx, [rsp + 0x50]
call fcn.004028ec
nop
lea rax, [rsp + 0x60]
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x60]
call fcn.004028ec
nop
lea rcx, [rsp + 0x70]
call fcn.004028ec
nop
lea rbx, [rsi + 0x280]
mov qword [rsp + 0xb0], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp dword [rsi + 0x238], 0
setne bpl
lea rdx, [rsi + 0x240]
lea rcx, [rsp + 0x40]
call fcn.00402b68
lea rdx, [rsi + 0x250]
lea rcx, [rsp + 0x50]
call fcn.00402b68
lea rdx, [rsi + 0x260]
lea rcx, [rsp + 0x60]
call fcn.00402b68
lea rdx, [rsi + 0x270]
lea rcx, [rsp + 0x70]
call fcn.00402b68
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rsp + 0x58], 0
je 0x491e35
mov byte [rsi + 0x2ab], 1
cmp dword [rsp + 0x48], 0
jne 0x491e0c
lea rdx, [0x004a3d20]
lea rcx, [rsp + 0x40]
call fcn.00402c98
cmp byte [0x004d6791], 0
jne 0x491ed3
mov r9d, InitCommonControls
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x491e80
test bpl, bpl
jne 0x491e80
mov byte [rsi + 0x2ab], 1
cmp dword [rsp + 0x78], 0
je 0x491e80
cmp dword [rsp + 0x68], 0
jne 0x491e60
lea rdx, [0x004a3d20]
lea rcx, [rsp + 0x60]
call fcn.00402c98
cmp byte [0x004d6791], 0
jne 0x491ed3
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [0x004d6791], 0
jne 0x491ed3
test bpl, bpl
je 0x491ed3
cmp byte [rsi + 0x1ae], 0
jne 0x491ed3
mov byte [rsi + 0x1ad], 1
mov rcx, rsi
call fcn.00490f88
nop
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
mov al, 1
jmp 0x491f0a
xor edx, edx
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_EndDialog]
nop
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
mov al, 1
add rsp, 0x88
pop rdi
pop rsi
pop rbp
pop rbx
ret