Function at 0x140037d60
Capabilities:
Print debug messages

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
mov rax, qword [0x1405bdab8]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x2c], 0
mov qword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp qword [rsp + 0xc0], 0
je 0x140037ecc
lea rax, [0x1405bb224]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0xc0]
call fcn.1400387c0
test eax, eax
jne 0x140037e02
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xc0]
call fcn.140337044
test eax, eax
je 0x140037e02
mov dword [rsp + 0x80], 1
jmp 0x140037e0d
mov dword [rsp + 0x80], 0
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140037e41
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov qword [rsp + 0x88], rcx
jmp 0x140037e4d
mov qword [rsp + 0x88], 0
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0xc0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rax, qword [rsp + 0x88]
lea rax, [rcx + rax + 1]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
shl rdx, 1
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140037ecc
cmp dword [rsp + 0x48], 0
je 0x140037eb5
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call fcn.140039a50
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call fcn.140039ab0
cmp qword [rsp + 0x30], 0
je 0x140037ee2
mov rcx, qword [rsp + 0x30]
call fcn.140038850
test eax, eax
jne 0x140037eff
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x140038096
lea rdx, [rsp + 0x2c]
mov rcx, qword [rsp + 0x30]
call fcn.140038c40
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140037f4d
cmp dword [rsp + 0x28], 0
je 0x140037f4d
cmp dword [rsp + 0x2c], 0
jne 0x140037f4d
cmp dword [rsp + 0xd0], 0
je 0x140037f4d
mov dword [rsp + 0x38], 0x80092009
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rsp + 0x38], 0
je 0x140038065
call fcn.140039790
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14003804c
lea rdi, [rsp + 0x68]
lea rsi, str.0x00000000_n
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
lea rcx, [0x1405bb260]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.__Error:
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsp + 0x5c], 0
jmp 0x140037fb9
mov eax, dword [rsp + 0x5c]
add eax, 1
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 8
jge 0x140038028
mov eax, 7
sub eax, dword [rsp + 0x5c]
shl eax, 2
movzx ecx, al
mov eax, dword [rsp + 0x38]
shr eax, cl
mov ecx, eax
and ecx, 0xf
movsxd rax, dword [rsp + 0x5c]
mov word [rsp + rax*2 + 0x68], cx
movsxd rax, dword [rsp + 0x5c]
movzx eax, word [rsp + rax*2 + 0x68]
cmp eax, 0xa
jge 0x140038000
mov dword [rsp + 0x90], 0x30
jmp 0x14003800b
mov dword [rsp + 0x90], 0x37
movsxd rax, dword [rsp + 0x5c]
movzx ecx, word [rsp + rax*2 + 0x68]
add ecx, dword [rsp + 0x90]
movsxd rax, dword [rsp + 0x5c]
mov word [rsp + rax*2 + 0x68], cx
jmp 0x140037fae
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1400399d0
mov dword [rsp + 0x38], 0
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140038065
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x140038096
mov r8d, dword [rsp + 0xc8]
and r8d, 0xffffe0f7
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14031e660
add rsp, 0xa8
pop rdi
pop rsi
ret