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

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov dword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0xd0]
call fcn.140031c70
nop
movzx eax, byte [rsp + 0xd8]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x140039138
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
mov rax, qword [rcx + rax + 0x28]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 1
jg 0x140038e94
mov qword [rsp + 0x90], 0
jmp 0x140038ecb
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
mov rax, qword [rcx + rax + 0x28]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
dec rax
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
mov eax, dword [rcx + rax + 0x18]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
and eax, 0x1c0
cmp eax, 0x40
je 0x140038fd7
jmp 0x140038f18
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x20], 0
jne 0x140038fd7
cmp qword [rsp + 0x30], 0
jle 0x140038fd7
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
movzx eax, byte [rcx + rax + 0x58]
mov byte [rsp + 0x25], al
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
mov rax, qword [rcx + rax + 0x48]
mov qword [rsp + 0xb0], rax
movzx edx, byte [rsp + 0x25]
mov rcx, qword [rsp + 0xb0]
call fcn.140046580
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], 0xffffffff
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x54], eax
jne 0x140038fad
mov dword [rsp + 0x38], 1
jmp 0x140038fb5
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x26], al
movzx eax, byte [rsp + 0x26]
test eax, eax
je 0x140038fd2
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x140038f0b
cmp dword [rsp + 0x20], 0
jne 0x140039068
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
mov rax, qword [rcx + rax + 0x48]
mov qword [rsp + 0xb8], rax
movzx edx, byte [rsp + 0x108]
mov rcx, qword [rsp + 0xb8]
call fcn.140046580
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], 0xffffffff
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x60], eax
jne 0x140039043
mov dword [rsp + 0x3c], 1
jmp 0x14003904b
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x27], al
movzx eax, byte [rsp + 0x27]
test eax, eax
je 0x140039068
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x140039077
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x20], 0
jne 0x140039136
cmp qword [rsp + 0x30], 0
jle 0x140039136
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
movzx eax, byte [rcx + rax + 0x58]
mov byte [rsp + 0x28], al
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
mov rax, qword [rcx + rax + 0x48]
mov qword [rsp + 0xc0], rax
movzx edx, byte [rsp + 0x28]
mov rcx, qword [rsp + 0xc0]
call fcn.140046580
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x6c], 0xffffffff
mov eax, dword [rsp + 0x68]
cmp dword [rsp + 0x6c], eax
jne 0x14003910c
mov dword [rsp + 0x40], 1
jmp 0x140039114
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x29], al
movzx eax, byte [rsp + 0x29]
test eax, eax
je 0x140039131
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x14003906a
jmp 0x140039138
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x98]
mov qword [rax + 0x28], 0
mov rax, qword [rsp + 0x100]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x100]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x88]
cmp qword [rax + 0x48], 0
je 0x1400391ce
mov dword [rsp + 0x48], 0
jmp 0x1400391d6
mov dword [rsp + 0x48], 4
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x74]
or ecx, eax
mov eax, ecx
or eax, dword [rsp + 0x48]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0x88]
call fcn.1400355b0
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0xc8], rax
lea rcx, [rsp + 0xd0]
call fcn.140032500
mov rax, qword [rsp + 0xc8]
add rsp, 0xf8
ret