Function at 0x1400048f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x278
mov rax, qword [0x1400380d0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ecx, dword [0x14003801c]
mov eax, dword [rsp + 0x280]
and eax, ecx
test eax, eax
je 0x140004c55
lea rax, [0x1400286bf]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x30], eax
mov edx, 1
mov ecx, dword [rsp + 0x30]
call fcn.140004ed0
mov qword [rsp + 0x258], rax
mov eax, dword [rsp + 0x280]
and eax, 0x8000000
test eax, eax
je 0x140004978
lea rax, str._error_
mov qword [rsp + 0x38], rax
jmp 0x140004994
mov eax, dword [rsp + 0x280]
and eax, 0x4000000
test eax, eax
je 0x140004994
lea rax, str._warning_
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x258], 0
je 0x140004a0c
mov rax, qword [rsp + 0x258]
cmp qword [rax + 8], 0
je 0x140004a0c
mov rdx, qword [rsp + 0x258]
mov rdx, qword [rdx + 8]
mov rcx, qword [rsp + 0x288]
call fcn.1400127d4
cmp rax, qword [rsp + 0x288]
je 0x140004a0c
mov rax, qword [rsp + 0x258]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, qword [0x140038020]
lea rdx, str._s___04d___s_s__
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfA]
jmp 0x140004a34
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, qword [0x140038020]
lea rdx, str._s___04d___s
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rsp + 0x50]
call fcn.1400128f0
mov qword [rsp + 0x250], rax
mov edx, 0x200
sub rdx, qword [rsp + 0x250]
mov rax, qword [rsp + 0x250]
lea rcx, [rsp + rax + 0x50]
mov r9, qword [rsp + 0x290]
mov r8, qword [rsp + 0x288]
call fcn.140012dd8
lea rcx, [rsp + 0x50]
call fcn.1400128f0
mov qword [rsp + 0x250], rax
mov rax, qword [rsp + 0x250]
movsx eax, byte [rsp + rax + 0x4f]
cmp eax, 0xa
je 0x140004ac7
mov rax, qword [rsp + 0x250]
mov byte [rsp + rax + 0x50], 0xa
mov rax, qword [rsp + 0x250]
mov byte [rsp + rax + 0x51], 0
mov rax, qword [rsp + 0x250]
add rax, 1
mov qword [rsp + 0x250], rax
mov eax, dword [0x140038010]
and eax, 1
test eax, eax
je 0x140004ae1
cmp dword [rsp + 0x280], 0x8000000
je 0x140004b22
mov eax, dword [0x140038010]
and eax, 2
test eax, eax
je 0x140004afb
cmp dword [rsp + 0x280], 0x4000000
je 0x140004b22
mov eax, dword [0x140038010]
and eax, 4
test eax, eax
je 0x140004b2d
cmp dword [rsp + 0x280], 0x4000000
je 0x140004b2d
cmp dword [rsp + 0x280], 0x8000000
je 0x140004b2d
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp qword [rsp + 0x258], 0
je 0x140004c3e
mov rax, qword [rsp + 0x258]
cmp dword [rax + 0x10], 0
jne 0x140004c3e
mov rax, qword [rsp + 0x258]
mov ecx, dword [rax + 0x10]
add ecx, 1
mov rax, qword [rsp + 0x258]
mov dword [rax + 0x10], ecx
call fcn.140004500
cmp qword [0x140039708], 0
je 0x140004c25
mov eax, dword [0x140038010]
and eax, 0x10
test eax, eax
je 0x140004b94
cmp dword [rsp + 0x280], 0x8000000
je 0x140004bae
mov eax, dword [0x140038010]
and eax, 0x20
test eax, eax
je 0x140004bb3
cmp dword [rsp + 0x280], 0x4000000
jne 0x140004bb3
call fcn.140004770
mov eax, dword [0x140038010]
and eax, 0x100
test eax, eax
je 0x140004bcf
cmp dword [rsp + 0x280], 0x8000000
je 0x140004c14
mov eax, dword [0x140038010]
and eax, 0x200
test eax, eax
je 0x140004beb
cmp dword [rsp + 0x280], 0x4000000
je 0x140004c14
mov eax, dword [0x140038010]
and eax, 0x400
test eax, eax
je 0x140004c25
cmp dword [rsp + 0x280], 0x4000000
je 0x140004c25
cmp dword [rsp + 0x280], 0x8000000
je 0x140004c25
lea rdx, [rsp + 0x50]
mov ecx, dword [rsp + 0x280]
call fcn.140005cd0
mov rax, qword [rsp + 0x258]
mov ecx, dword [rax + 0x10]
sub ecx, 1
mov rax, qword [rsp + 0x258]
mov dword [rax + 0x10], ecx
mov eax, dword [0x1400396e4]
and eax, 2
test eax, eax
je 0x140004c55
lea rcx, [rsp + 0x50]
call fcn.1400053f0
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140012840
add rsp, 0x278
ret