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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x70]
mov ebp, dword [rsp + 0x90]
xor r15d, r15d
mov r10d, dword [rbx + 0x38]
movsxd r12, r9d
mov r11d, r8d
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x70], r15d
lea r14, [rdx + r12*4]
cmp ebp, 3
jne 0x18003a343
movzx edx, word [r14 + 0x22]
lea eax, [r8 - 0xf]
mov byte [r14 + 0x20], 1
cmp eax, 0x4c
ja case.0x18003a053.20
lea r8, [0x180000000]
cdqe
movzx eax, byte [r8 + rax + 0x3a5e8]
mov ecx, dword [r8 + rax*4 + 0x3a5b4]
add rcx, r8
jmp rcx
mov ecx, dword [rsp + 0x78]
test ecx, ecx
je 0x18003a0f8
dec ecx
je 0x18003a0d1
dec ecx
jne 0x18003a0b7
cmp r11d, 0x1c
jne 0x18003a076
or dword [rbx + 4], 0x2000000
test dword [rsp + 0xa0], 0x2000000
je 0x18003a08a
or dword [rbx + 4], 0x2000000
mov ecx, dword [rsp + 0x98]
test r10b, 1
je 0x18003a0a1
or dword [rbx + 4], 0x2000000
add ecx, 8
mov edx, 0x40
mov byte [r14 + 0x21], cl
lea eax, [rdx - 0x3f]
mov word [r14 + 0x22], dx
jmp 0x18003a593
mov ecx, dword [rsp + 0x98]
mov word [r14 + 0x22], dx
mov eax, 1
mov byte [r14 + 0x21], cl
jmp 0x18003a593
or dword [rbx + 4], 0x2000
mov ecx, dword [rsp + 0x98]
test r10b, 1
je 0x18003a32a
or dword [rbx + 4], 0x2000000
add ecx, 8
jmp 0x18003a32a
or dword [rbx + 4], 0x2000
mov ecx, dword [rsp + 0x98]
test r10b, 1
je 0x18003a116
or dword [rbx + 4], 0x2000000
add ecx, 8
mov edx, 0x10
add ecx, 0x20
lea eax, [rdx - 0xf]
mov word [r14 + 0x22], dx
mov byte [r14 + 0x21], cl
jmp 0x18003a593
mov ecx, dword [rsp + 0x98]
test r10b, 1
je 0x18003a146
or dword [rbx + 4], 0x2000000
add ecx, 8
cmp dword [rdi + 0x1c], 2
jne 0x18003a163
mov eax, dword [rsp + 0xa0]
and eax, 0x3000000
cmp eax, 0x1000000
je 0x18003a0a1
test r10b, 8
je 0x18003a32a
or dword [rbx + 4], 0x2000000
jmp 0x18003a0a1
mov ecx, dword [rsp + 0x98]
test r10b, 1
je 0x18003a190
or dword [rbx + 4], 0x2000000
add ecx, 8
test dword [rbx], 0x2000
je 0x18003a32a
or dword [rbx + 4], 0x2000
mov edx, 0x10
add ecx, 0x20
mov byte [r14 + 0x21], cl
lea eax, [rdx - 0xf]
mov word [r14 + 0x22], dx
jmp 0x18003a593
mov ecx, dword [rsp + 0x98]
test r10b, 1
je 0x18003a1d3
or dword [rbx + 4], 0x2000000
add ecx, 8
add ecx, 0x20
mov word [r14 + 0x22], dx
mov eax, 1
mov byte [r14 + 0x21], cl
jmp 0x18003a593
cmp dword [rbx + 0x28], 1
jne 0x18003a223
mov eax, dword [rsp + 0x98]
or dword [rbx + 4], 0x2000000
and r10d, 1
lea ecx, [rax + r10*8]
lea eax, [rcx - 4]
cmp eax, 3
ja 0x18003a22a
add ecx, 0x3c
mov word [r14 + 0x22], dx
mov eax, 1
mov byte [r14 + 0x21], cl
jmp 0x18003a593
mov ecx, dword [rsp + 0x98]
add ecx, 0x30
mov word [r14 + 0x22], dx
mov eax, 1
mov byte [r14 + 0x21], cl
jmp 0x18003a593
mov ecx, dword [rsp + 0x98]
mov edx, 0x40
add ecx, 0x53
mov word [r14 + 0x22], dx
lea eax, [rdx - 0x3f]
mov byte [r14 + 0x21], cl
jmp 0x18003a593
mov ecx, dword [rsp + 0x98]
test r10b, 1
je 0x18003a277
or dword [rbx + 4], 0x2000000
add ecx, 8
mov edx, 0x80
add ecx, 0x5b
lea eax, [rdx - 0x7f]
mov word [r14 + 0x22], dx
mov byte [r14 + 0x21], cl
jmp 0x18003a593
mov ecx, dword [rsp + 0x98]
test r10b, 1
je 0x18003a2a0
add ecx, 8
add ecx, 0x6b
mov word [r14 + 0x22], dx
mov eax, 1
mov byte [r14 + 0x21], cl
jmp 0x18003a593
mov ecx, dword [rsp + 0x98]
test r10b, 1
je 0x18003a2c6
add ecx, 8
test r10b, 0x10
je 0x18003a277
mov edx, 0x100
add ecx, 0x6b
mov eax, 1
mov word [r14 + 0x22], dx
mov byte [r14 + 0x21], cl
jmp 0x18003a593
mov ecx, dword [rsp + 0x98]
test r10b, 1
je 0x18003a277
mov edx, 0x80
add ecx, 8
add ecx, 0x5b
mov word [r14 + 0x22], dx
lea eax, [rdx - 0x7f]
mov byte [r14 + 0x21], cl
jmp 0x18003a593
mov ecx, dword [rsp + 0x98]
test r10b, 1
je 0x18003a320
add ecx, 8
test r10b, 8
jne 0x18003a0a1
mov edx, 0x20
add ecx, 0x10
lea eax, [rdx - 0x1f]
mov word [r14 + 0x22], dx
mov byte [r14 + 0x21], cl
jmp 0x18003a593
mov rax, qword [rsp + 0x88]
or dword [rbx + 4], 0x4000
test rax, rax
je 0x18003a362
test byte [rbx], 0x10
je 0x18003a362
mov dword [rax], 1
mov r9d, dword [rsp + 0x80]
test r9d, r9d
jne 0x18003a44e
mov edx, dword [rsp + 0x98]
test ebp, ebp
jne 0x18003a3af
cmp edx, 6
jne 0x18003a3af
add dword [rcx + 0x18], 0xfffffffe
mov byte [r14 + 0x20], 5
mov byte [rsi + 0x34], 0x10
js case.0x18003a053.20
mov rcx, qword [rcx + 0x10]
movsx rax, word [rcx]
mov qword [rsi + 8], rax
lea rax, [rcx + 2]
mov qword [rdi + 0x10], rax
jmp 0x18003a576
lea r8, [0x180000000]
movzx eax, byte [rdx + r8 + 0xb20a0]
cmp edx, 4
jae 0x18003a3d7
mov byte [r14 + 0x20], 7
mov byte [rsi + 0x32], al
movzx eax, byte [rdx + r8 + 0xb209c]
jmp 0x18003a3dc
mov byte [r14 + 0x20], 6
mov byte [r14 + 0x21], al
cmp ebp, 1
jne 0x18003a404
dec dword [rcx + 0x18]
mov byte [rsi + 0x34], 8
js case.0x18003a053.20
mov rcx, qword [rcx + 0x10]
movsx rax, byte [rcx]
mov qword [rsi + 8], rax
lea rax, [rcx + 1]
jmp 0x18003a427
cmp ebp, 2
jne 0x18003a42b
add dword [rcx + 0x18], 0xfffffffe
mov byte [rsi + 0x34], 0x10
js case.0x18003a053.20
mov rcx, qword [rcx + 0x10]
movsx rax, word [rcx]
mov qword [rsi + 8], rax
lea rax, [rcx + 2]
mov qword [rdi + 0x10], rax
lea eax, [rdx - 2]
cmp eax, 1
jbe 0x18003a444
cmp edx, 6
jne 0x18003a576
test ebp, ebp
je 0x18003a576
mov ecx, 0x100
jmp 0x18003a57b
mov eax, dword [rsp + 0x98]
test ebp, ebp
jne 0x18003a4a4
cmp eax, 5
jne 0x18003a4a4
add dword [rcx + 0x18], 0xfffffffc
mov byte [rdx + 0x34], 0x20
js case.0x18003a053.20
cmp dword [rdi + 0x1c], 2
mov rcx, qword [rcx + 0x10]
movsxd rax, dword [rcx]
mov qword [rdx + 8], rax
lea rax, [rcx + 4]
mov qword [rdi + 0x10], rax
jne 0x18003a49a
mov eax, 0x80
mov word [r14 + 0x20], 0x4a06
or word [rdx + 0x18], ax
jmp 0x18003a550
mov byte [r14 + 0x20], 5
jmp 0x18003a550
cmp eax, 4
jne 0x18003a4e3
dec dword [rcx + 0x18]
js case.0x18003a053.20
mov rcx, qword [rcx + 0x10]
mov r8, rbx
mov edx, r12d
movzx eax, byte [rcx]
mov dword [rsp + 0x28], ebp
mov byte [rsp + 0x70], al
lea rax, [rcx + 1]
mov rcx, rsi
mov r15d, dword [rsp + 0x70]
mov qword [rdi + 0x10], rax
mov dword [rsp + 0x20], r15d
call fcn.180039eb0
jmp 0x18003a504
mov byte [r14 + 0x20], 6
test r10b, 1
je 0x18003a4f8
or dword [rbx + 4], 0x2000000
add eax, 8
cmp r9d, 2
je 0x18003a500
add al, 0x10
mov byte [r14 + 0x21], al
cmp ebp, 1
jne 0x18003a524
dec dword [rdi + 0x18]
mov byte [rsi + 0x34], 8
js case.0x18003a053.20
mov rcx, qword [rdi + 0x10]
movsx rax, byte [rcx]
mov qword [rsi + 8], rax
lea rax, [rcx + 1]
jmp 0x18003a54c
cmp ebp, 2
je 0x18003a533
and r15d, 7
cmp r15b, 5
jne 0x18003a550
add dword [rdi + 0x18], 0xfffffffc
mov byte [rsi + 0x34], 0x20
js case.0x18003a053.20
mov rcx, qword [rdi + 0x10]
movsxd rax, dword [rcx]
mov qword [rsi + 8], rax
lea rax, [rcx + 4]
mov qword [rdi + 0x10], rax
movzx ecx, byte [rsi + 0x32]
movzx eax, byte [r14 + 0x21]
cmp cl, 0xff
je 0x18003a563
movzx eax, cl
jmp 0x18003a569
cmp byte [rsi + 0x33], 2
jae 0x18003a576
add eax, 0xffffffec
mov ecx, 0x100
cmp eax, 1
jbe 0x18003a57b
mov ecx, 0x200
mov r8d, dword [rdi + 0x1c]
mov r9, rsi
mov rdx, rbx
call fcn.180039450
mov eax, 1
jmp 0x18003a593
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret