Function at 0x405e30
Capabilities:
Hide graphical window
Read .ini file

Disassembly:
mov r11, rsp
sub rsp, 0x2b8
mov rax, qword [0x00417b90]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov eax, dword [0x0041a4b0]
mov qword [r11 + 0x20], rbp
mov qword [r11 - 0x30], r15
test al, 1
movsxd r15, edx
mov rbp, rcx
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x38], rcx
jne 0x405e89
or eax, 1
mov edx, 0x403
mov dword [0x0041a4b0], eax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov qword [0x0041a4a8], rax
mov qword [rsp + 0x2a8], rdi
mov qword [rsp + 0x298], r13
mov qword [rsp + 0x290], r14
lea r14, [0x00400000]
xor edi, edi
mov r13, r15
nop
cmp r15, rdi
jne 0x405edd
mov rcx, qword [r14 + rdi*8 + 0x19108]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [r14 + rdi*8 + 0x19108]
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x405efd
mov rcx, qword [r14 + rdi*8 + 0x19108]
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [r14 + rdi*8 + 0x19108]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
add rdi, 1
cmp rdi, 5
jl 0x405eb0
mov qword [rsp + 0x2d0], rbx
xor ebx, ebx
mov qword [rsp + 0x2b0], rsi
cmp qword [str.JCPRIWEL_01], rbx
je 0x405fa5
xor edi, edi
nop
nop
movsxd rcx, dword [rdi + r14 + 0x179d0]
mov edx, dword [rdi + r14 + 0x179d4]
mov rcx, qword [r14 + rcx*8 + 0x19108]
call qword [sym.imp.USER32.dll_GetDlgItem]
cmp r15d, dword [rdi + r14 + 0x179d0]
mov rsi, rax
jne 0x405f79
mov edx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x405f8f
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.USER32.dll_ShowWindow]
add rbx, 1
mov rdi, rbx
shl rdi, 4
cmp qword [rdi + r14 + 0x179d8], 0
jne 0x405f30
lea rax, [0x00419440]
imul r13, r13, 0xb0
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r8, [0x00412649]
lea rcx, str.TITLE
lea rdx, [r13 + r14 + 0x17664]
mov qword [rsp + 0x2a0], r12
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov r8, qword [0x004195d0]
xor r9d, r9d
lea edx, [r9 + 0x30]
mov rcx, rbp
call qword [sym.imp.USER32.dll_SendMessageA]
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetWindowTextA]
xor r12d, r12d
lea rbp, [r13 + r14 + 0x17684]
lea rbx, [0x004192e8]
lea r15, [0x00400000]
lea r14d, [r12 + 3]
nop
lea rdi, [0x00412d10]
mov rsi, rbp
mov ecx, 6
repe cmpsb byte [rsi], byte [rdi]
jne 0x406053
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4060ff
lea rax, [r12 + r13]
cmp byte [rax + r15 + 0x17684], 0x2d
jne 0x40607e
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
lea rdx, [rbp + 1]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40609a
mov rcx, qword [rbx]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
lea rcx, [rsp + 0x50]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, qword [rbx]
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, [0x00419440]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r8, [0x00412649]
lea rdx, [rsp + 0x50]
lea rcx, str.BUTTON
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov r8, qword [0x004195d0]
mov rcx, qword [rbx]
xor r9d, r9d
lea edx, [r9 + 0x30]
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetWindowTextA]
add rbp, 0x20
add r12, 0x20
add rbx, 8
sub r14, 1
jne 0x406030
mov edx, dword [r13 + r15 + 0x17660]
mov rcx, qword [0x0041a4a8]
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [r13 + r15 + 0x17660], 0
mov r15d, dword [rsp + 0x30]
mov r14, qword [rsp + 0x290]
mov r12, qword [rsp + 0x2a0]
mov rbp, qword [rsp + 0x2d8]
je 0x4062f6
mov rcx, qword [0x0041a4a8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rdx, qword [str.JCPInst]
lea rbx, [0x00419440]
lea r9, [rsp + 0x60]
lea r8, str.nothing
lea rcx, [0x00412cf8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rsi, [rsp + 0x60]
lea rdi, str.nothing
mov ecx, 8
repe cmpsb byte [rsi], byte [rdi]
jne 0x406274
mov r8, qword [str.JCPInst]
lea rdx, str._s_02d
lea rcx, [rsp + 0x50]
mov r9d, r15d
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rsp + 0x60]
lea r8, str.nothing
lea rdx, [rsp + 0x50]
lea rcx, [0x00412cf8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rsi, [rsp + 0x60]
lea rdi, str.nothing
mov ecx, 8
repe cmpsb byte [rsi], byte [rdi]
jne 0x406274
lea rax, [0x00400000]
lea r9, [rsp + 0x60]
lea r8, str.nothing
lea rdi, [r13 + rax + 0x176f0]
lea rcx, [0x00412cf8]
mov qword [rsp + 0x28], rbx
mov rdx, rdi
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rdx, str.nothing
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x406274
lea rdx, str._s.bmp
lea rcx, [rsp + 0x60]
mov r8, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
lea rdx, [0x00419300]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x160]
mov edx, 0x104
call fcn.00407790
lea rdx, [rsp + 0x160]
lea rcx, [0x00419720]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, qword [0x00419828]
test rcx, rcx
mov rdi, rax
je 0x4062e2
call fcn.0040a5b0
mov qword [0x00419828], 0
mov rcx, rdi
call fcn.00405ce0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r15, qword [rsp + 0x288]
mov r13, qword [rsp + 0x298]
mov rdi, qword [rsp + 0x2a8]
mov rsi, qword [rsp + 0x2b0]
mov rbx, qword [rsp + 0x2d0]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.00409d20
add rsp, 0x2b8
ret