Function at 0x140038bb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
mov dword [rsp + 0x3c], 0
cmp qword [rsp + 0xd8], 0
je 0x140038bf1
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x4c], eax
jmp 0x140038bfa
call fcn.140038870
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x140038cc7
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0xd0]
lea rax, [rax + rcx + 1]
mov rdx, rax
mov rcx, qword [rsp + 0xc0]
call fcn.140036c10
test rax, rax
jne 0x140038c3d
mov eax, 0xffffffff
jmp 0x1400391e2
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0xd0]
cmp dword [rsp + 0x30], eax
jge 0x140038cc2
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
test eax, eax
je 0x140038cc2
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x60]
mov word [rcx], ax
mov rax, qword [rsp + 0x60]
add rax, 2
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x140038c72
jmp 0x1400391a4
cmp qword [rsp + 0xd8], 0
je 0x140038e83
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x24]
and eax, 0xc0
test eax, eax
je 0x140038e83
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x58], eax
call fcn.140039670
test eax, eax
je 0x140038d22
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x24]
bts eax, 0xa
mov rcx, qword [rsp + 0xd8]
mov dword [rcx + 0x24], eax
jmp 0x140038d3c
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x24]
bts eax, 0xc
mov rcx, qword [rsp + 0xd8]
mov dword [rcx + 0x24], eax
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x24]
and eax, 0x2800
test eax, eax
je 0x140038d6b
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
call fcn.140038b00
mov dword [rsp + 0x30], eax
jmp 0x140038d84
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
call fcn.140038a80
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 8]
shl rax, 1
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x24]
and eax, 0x40
test eax, eax
je 0x140038dff
movsxd rax, dword [rsp + 0x30]
mov r9, qword [rsp + 0xd8]
mov r8, rax
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x80]
call fcn.14003b1d0
mov dword [rsp + 0x3c], eax
jmp 0x140038e28
movsxd rax, dword [rsp + 0x30]
mov r9, qword [rsp + 0xd8]
mov r8, rax
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x80]
call fcn.14003d800
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x80]
mov qword [rax], rcx
mov rax, qword [rsp + 0x88]
shr rax, 1
mov rcx, qword [rsp + 0xc0]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x90]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0xd8]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 0x24], ecx
mov eax, dword [rsp + 0x3c]
jmp 0x1400391e2
cmp qword [rsp + 0xd8], 0
je 0x140039069
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x24]
and eax, 0x2800
test eax, eax
je 0x140039069
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
call fcn.140038b00
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
sar eax, 1
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 8]
lea rax, [rcx + rax + 1]
mov rdx, rax
mov rcx, qword [rsp + 0xc0]
call fcn.140036c10
test rax, rax
jne 0x140038f02
mov eax, 0xffffffff
jmp 0x1400391e2
movsxd rax, dword [rsp + 0x30]
shl rax, 1
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 8]
mov rdx, qword [rsp + 0xc0]
mov rdx, qword [rdx]
lea rcx, [rdx + rcx*2]
mov rdi, rcx
mov rsi, qword [rsp + 0xc8]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x24]
and eax, 0x800
test eax, eax
je 0x140038fd1
call fcn.140039670
test eax, eax
jne 0x140038fd1
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x34], 0
jmp 0x140038f8a
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jge 0x140038fcc
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax*2]
mov rcx, rax
call fcn.140036130
mov word [rsp + 0x40], ax
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax*2]
movzx edx, word [rsp + 0x40]
mov rcx, rax
call fcn.140036190
jmp 0x140038f80
jmp 0x140039064
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x24]
and eax, 0x2000
test eax, eax
je 0x140039064
call fcn.140039670
test eax, eax
je 0x140039064
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x38], 0
jmp 0x140039022
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x38], eax
jge 0x140039064
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax*2]
mov rcx, rax
call fcn.1400360d0
mov word [rsp + 0x44], ax
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax*2]
movzx edx, word [rsp + 0x44]
mov rcx, rax
call fcn.1400361f0
jmp 0x140039018
jmp 0x1400391a4
cmp qword [rsp + 0xd8], 0
jne 0x14003907e
mov dword [rsp + 0x48], 0
jmp 0x1400390bf
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x24]
and eax, 2
test eax, eax
je 0x1400390b7
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xc8]
call fcn.140038a80
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0x48], 0
jmp 0x1400390bf
mov dword [rsp + 0x48], 1
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0xd0]
lea rax, [rax + rcx + 1]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140036c10
test rax, rax
jne 0x1400390fe
mov eax, 0xffffffff
jmp 0x1400391e2
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x10]
shr rax, 1
dec eax
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx + 8]
mov rdx, qword [rsp + 0xc0]
mov rdx, qword [rdx]
lea rcx, [rdx + rcx*2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0xd0]
mov r8, qword [rsp + 0xc8]
mov edx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14003917d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14003917d
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x10]
shl rax, 1
mov qword [rsp + 0x78], rax
jmp 0x140039199
cmp dword [rsp + 0x30], 0
jne 0x140039197
cmp qword [rsp + 0xd0], 0
je 0x140039197
mov dword [rsp + 0x3c], 0xffffffff
jmp 0x1400391a4
xor eax, eax
cmp eax, 1
jne 0x1400390dd
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xc0]
add rax, qword [rcx + 8]
mov rcx, qword [rsp + 0xc0]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0xc0]
mov rcx, qword [rcx]
xor edx, edx
mov word [rcx + rax*2], dx
mov eax, dword [rsp + 0x3c]
add rsp, 0xa8
pop rdi
pop rsi
ret