Function at 0x100432450
Capabilities:
Create thread

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1600]
mov eax, 0x1700
call fcn.10046b370
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1738], rbx
mov qword [rsp + 0x1740], rsi
mov qword [rsp + 0x1748], rdi
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x15f0], rax
mov r14d, r8d
mov rdi, rcx
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0xf0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
xor r12d, r12d
mov esi, r12d
mov ebx, dword [0x1004a916c]
shr ebx, 1
and ebx, 1
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x6c], r12d
mov dword [rsp + 0x68], r12d
call fcn.10044da70
cmp byte [rax + 0xa8], sil
je 0x100432ba5
lea rax, [rbp - 0x80]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r12w
lea r8d, [r12 + 0xc]
lea rdx, str.ErrorLogFile
lea rcx, [rbp - 0x80]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x38]
call fcn.10040a3c0
nop
cmp qword [rbp - 0x28], r12
jbe 0x100432554
xor ecx, ecx
call fcn.10042fff0
cmp dword [0x1004a92b4], 1
jne 0x10043256e
call fcn.100433710
lea rcx, [0x10047876c]
call fcn.10043bdc0
test ebx, ebx
jne 0x10043257d
cmp qword [rbp - 0x28], 0
jbe 0x100432b51
test rdi, rdi
je 0x100432b51
cmp word [rdi], 0
je 0x100432b51
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x6c]
mov ebx, 0x80
mov edx, ebx
lea rcx, [rbp + 0xf0]
call fcn.10043cde0
movzx eax, word [rdi]
lea r15d, [rbx - 0x7f]
cmp ax, 0x3f
ja 0x100432603
movabs rcx, 0x8000080200000000
bt rcx, rax
jae 0x100432603
lea rcx, [rbp - 0x10]
lea rdx, str._s____s_r_n
lea rax, [rbp - 0x10]
sub rdx, rax
nop dword [rax]
lea rax, [rbx + 0x7fffff7e]
test rax, rax
je 0x100432644
movzx eax, word [rdx + rcx]
test ax, ax
je 0x100432644
mov word [rcx], ax
add rcx, 2
sub rbx, r15
jne 0x1004325e0
jmp 0x100432644
lea rcx, [rbp - 0x10]
lea rdx, str._s______s_r_n
lea rax, [rbp - 0x10]
sub rdx, rax
nop word [rax + rax]
lea rax, [rbx + 0x7fffff7e]
test rax, rax
je 0x100432641
movzx eax, word [rdx + rcx]
test ax, ax
je 0x100432641
mov word [rcx], ax
add rcx, 2
sub rbx, r15
jne 0x100432620
mov esi, r15d
lea rax, [rcx - 2]
test rbx, rbx
cmovne rax, rcx
mov word [rax], r12w
lea rax, [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r12w
mov r8d, 0x11
lea rdx, str.ErrorLoggingLevel
lea rcx, [rsp + 0x48]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.100409ee0
mov r13d, eax
test al, 1
je 0x1004326a8
cmp word [rdi], 0x21
je 0x1004326c7
test r13b, 2
je 0x1004326b4
cmp word [rdi], 0x2b
je 0x1004326c7
test r13b, 4
je 0x1004326c4
cmp word [rdi], 0x3f
je 0x1004326c7
test esi, esi
jne 0x1004326c7
mov r15d, r12d
cmp r14d, 4
mov eax, 1
cmove r15d, eax
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop
inc rax
cmp word [rdi + rax*2], 0
jne 0x1004326e0
lea rdx, [rbp - 0x10]
mov rcx, rbx
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x1004326f1
add eax, ecx
lea rdx, [rbp + 0xf0]
mov rcx, rbx
nop word [rax + rax]
inc rcx
cmp word [rdx + rcx*2], 0
jne 0x100432710
add eax, ecx
lea esi, [rax*2 + 2]
mov r8d, 0x702
lea rdx, str.LoggerOutput
mov ecx, esi
call fcn.10043acf0
mov r14, rax
test rax, rax
je 0x1004327a9
movsxd rdx, esi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0xf0]
lea r8, [rbp - 0x10]
mov rcx, rax
call fcn.10040b290
mov r8d, 0x706
lea rdx, str.LoggerOutput
mov ecx, esi
call fcn.10043acf0
mov r12, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1004327a6
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, eax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r12
mov r9d, ebx
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor r12d, r12d
cmp qword [rbp - 0x28], 0
jbe 0x10043290f
test r15d, r15d
je 0x10043290f
lea rax, [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r12w
mov r8d, VariantTimeToDosDateTime
lea rdx, str.OemErrorLog
lea rcx, [rsp + 0x48]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.10040a150
movzx r12d, al
call fcn.1004342d0
movzx esi, al
lea rcx, [0x1004a9338]
mov rax, qword [0x1004a90d0]
call qword [case.0x10044bd0b.0]
test eax, eax
jne 0x100432856
cmp dword [0x1004a8ebc], eax
je 0x100432849
test sil, sil
je 0x100432849
lea rdx, str.LoggerOutput
lea rcx, str.__s_____Waiting_for_CritSec__n
call fcn.10043bdc0
lea rcx, [0x1004a9338]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x100432877
test sil, sil
je 0x100432877
lea rdx, str.LoggerOutput
lea rcx, str.__s_____Enters_CritSec__n
call fcn.10043bdc0
mov rcx, qword [0x1004a9360]
test rcx, rcx
je 0x1004328d2
test r12b, r12b
jne 0x1004328af
mov r9, rdi
lea r8, [rbp + 0xf0]
lea rdx, [rbp - 0x10]
call fcn.10041ed20
mov r12, qword [rsp + 0x40]
mov rcx, qword [0x1004a9360]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
jmp 0x1004328d7
mov r12, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x1004787e8]
call fcn.10041ed70
mov rcx, qword [0x1004a9360]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
jmp 0x1004328d7
mov r12, qword [rsp + 0x40]
call fcn.1004342d0
movzx esi, al
lea rcx, [0x1004a9338]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x100432914
test sil, sil
je 0x100432914
lea rdx, str.LoggerOutput
lea rcx, str.__s_____Leaves_CritSec__n
call fcn.10043bdc0
jmp 0x100432914
mov r12, qword [rsp + 0x40]
cmp dword [rsp + 0x70], 0
je 0x10043292f
test r15d, r15d
je 0x10043292f
mov rdx, r12
lea rcx, [0x1004787e8]
call fcn.100433bc0
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x100432941
mov rcx, rax
call fcn.10043b3b0
test r14, r14
je 0x10043294e
mov rcx, r14
call fcn.10043b3b0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x78], rax
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r12w
lea r8d, [r12 + 0xc]
lea rdx, str.ErrorMonitor
lea rcx, [rsp + 0x48]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x58]
call fcn.10040a3c0
nop
test r13d, r13d
je 0x100432afd
cmp word [rdi], 0x21
jne 0x100432afd
cmp qword [rbp - 0x48], r12
jbe 0x100432afd
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x1f0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x5f0]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x200
lea r8, [rbp + 0x1f0]
lea edx, [r12 + 0x43]
mov rcx, qword [0x1004a90d8]
call qword [sym.imp.USER32.dll_LoadStringW]
lea rax, [rdi + 4]
mov qword [rsp + 0x20], rax
lea r9, [0x1004a8c80]
lea r8, [rbp + 0x1f0]
mov edx, 0x800
lea rcx, [rbp + 0x5f0]
call fcn.10040b460
mov r8d, 0x740
lea rdx, str.LoggerOutput
lea ecx, [r12 + 0x10]
call fcn.10043acf0
mov rdi, rax
test rax, rax
je 0x100432afd
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
jb 0x100432a69
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x100432a71
mov rdx, rdi
call fcn.10042e9b0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x100432a83
call fcn.10043b3b0
mov qword [rdi + 8], r12
lea rax, [rbp + 0x5f0]
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x100432a90
add rbx, 1
je 0x100432ad0
lea ecx, [rbx + rbx]
mov r8d, 0x60
lea rdx, str.AllocateAndCopyString
call fcn.10043acf0
mov qword [rdi + 8], rax
test rax, rax
je 0x100432ad0
lea r8, [rbp + 0x5f0]
mov rdx, rbx
mov rcx, rax
call fcn.10040d530
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
mov r9, rdi
lea r8, [0x100432be0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x100432afd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x100432b40
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x100432b3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x100432b3b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r12w
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x100432b94
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x100432b8f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x100432b8f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.100469388
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r12w
mov rcx, qword [rbp + 0x15f0]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0x1700]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret