Function at 0x14009ea70
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, 0x148
mov qword [rsp + 0x130], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x170]
call fcn.14009b980
cmp eax, 0xb
je 0x14009eab2
xor eax, eax
jmp 0x14009ef97
mov rax, qword [rsp + 0x178]
mov rax, qword [rax]
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x178]
call qword [rax + 0x38]
mov rax, qword [rsp + 0x170]
movzx eax, byte [rax + 0xd]
mov dword [rsp + 0x138], eax
mov eax, dword [rsp + 0x138]
sub eax, 1
mov dword [rsp + 0x138], eax
cmp dword [rsp + 0x138], 0x7f
ja case.0x14009eb22.3
movsxd rax, dword [rsp + 0x138]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x9efac]
mov eax, dword [rcx + rax*4 + 0x9efa4]
add rax, rcx
jmp rax
jmp 0x14009eb2d
xor eax, eax
jmp 0x14009ef97
mov rax, qword [rsp + 0x170]
movzx eax, word [rax + 0xb]
cmp dword [rsp + 0x9c], eax
je 0x14009eb49
xor eax, eax
jmp 0x14009ef97
mov rax, qword [rsp + 0x170]
movzx eax, byte [rax + 0x10]
cmp eax, 1
je 0x14009eb72
mov rax, qword [rsp + 0x170]
movzx eax, byte [rax + 0x10]
cmp eax, 2
je 0x14009eb72
xor eax, eax
jmp 0x14009ef97
mov rax, qword [rsp + 0x170]
movzx eax, word [rax + 0x13]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14009eb98
mov rax, qword [rsp + 0x170]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14009eba6
xor eax, eax
jmp 0x14009ef97
mov rax, qword [rsp + 0x170]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x170]
movzx eax, word [rax + 0x16]
test eax, eax
je 0x14009ebf5
cmp dword [rsp + 0x3c], 0
je 0x14009ebe5
mov rax, qword [rsp + 0x170]
movzx eax, word [rax + 0x16]
cmp dword [rsp + 0x3c], eax
je 0x14009ebe5
xor eax, eax
jmp 0x14009ef97
mov rax, qword [rsp + 0x170]
movzx eax, word [rax + 0x16]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14009ec03
xor eax, eax
jmp 0x14009ef97
mov rax, qword [rsp + 0x170]
movzx ecx, byte [rax + 0xd]
xor edx, edx
mov eax, dword [rsp + 0x50]
div ecx
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x170]
cmp dword [rax + 0x2c], 2
jb 0x14009ec3a
mov rcx, qword [rsp + 0x170]
mov eax, dword [rsp + 0x38]
cmp dword [rcx + 0x2c], eax
jb 0x14009ec41
xor eax, eax
jmp 0x14009ef97
cmp dword [rsp + 0x180], 0
jne 0x14009ec55
mov eax, 1
jmp 0x14009ef97
mov rax, qword [rsp + 0x170]
movzx eax, word [rax + 0xe]
mov rdi, qword [rsp + 0x168]
add rdi, rax
mov rax, qword [rsp + 0x170]
movzx ecx, byte [rax + 0x10]
mov eax, dword [rsp + 0x3c]
imul eax, ecx
mov eax, eax
add rdi, rax
mov rax, qword [rsp + 0x170]
mov edx, dword [rax + 0x2c]
sub edx, 2
mov rax, qword [rsp + 0x170]
movzx ecx, byte [rax + 0xd]
mov eax, edx
imul eax, ecx
mov ecx, eax
mov rax, rdi
add rax, rcx
mov dword [rsp + 0x8c], eax
mov rax, qword [rsp + 0x170]
movzx edx, byte [rax + 0xd]
mov rax, qword [rsp + 0x170]
movzx ecx, word [rax + 0xb]
mov eax, edx
imul eax, ecx
movsxd rcx, eax
call fcn.14012bbe0
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x170]
movzx edx, byte [rax + 0xd]
mov rax, qword [rsp + 0x170]
movzx ecx, word [rax + 0xb]
mov eax, edx
imul eax, ecx
cdqe
xor edx, edx
mov ecx, 0x20
div rcx
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x170]
movzx edx, word [rax + 0xe]
mov rax, qword [rsp + 0x170]
movzx eax, byte [rax + 0x10]
mov ecx, dword [rsp + 0x3c]
imul ecx, eax
mov eax, edx
add eax, ecx
mov edi, dword [rsp + 0x50]
sub edi, eax
mov rax, qword [rsp + 0x170]
movzx ecx, byte [rax + 0xd]
xor edx, edx
mov eax, edi
div ecx
mov dword [rsp + 0xb0], eax
mov rax, qword [rsp + 0x170]
movzx r9d, byte [rax + 0xd]
mov edx, dword [rsp + 0x8c]
mov rax, qword [rsp + 0x178]
mov rax, qword [rax]
mov r8, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x178]
call qword [rax + 0x28]
test eax, eax
je 0x14009edbc
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call sub.MSVCR90.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
jmp 0x14009ef97
mov dword [rsp + 0xb4], 0
jmp 0x14009ede8
mov eax, dword [rsp + 0xb4]
add eax, 1
mov dword [rsp + 0xb4], eax
mov rax, qword [rsp + 0x30]
add rax, 0x20
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0xb4], eax
jge 0x14009ee50
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
cmp eax, 0xe5
je 0x14009ee13
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
test eax, eax
jne 0x14009ee15
jmp 0x14009edc9
mov edx, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0x30]
call fcn.14009c5f0
test eax, eax
jne 0x14009ee4b
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call sub.MSVCR90.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
jmp 0x14009ef97
jmp 0x14009edc9
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call sub.MSVCR90.dll_void___cdecl_operator_delete___void____ptr64_
lea rcx, [rsp + 0x58]
call fcn.140053b60
nop
mov byte [rsp + 0xd8], 0
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x58]
call fcn.140116ce0
lea rdi, [rsp + 0x120]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0xe0]
lea rsi, [rsp + 0x120]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r8d, dword [rsp + 0x9c]
lea rdi, [rsp + 0x110]
lea rsi, [rsp + 0xe0]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea r9, [rsp + 0xd8]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x58]
call fcn.140053c20
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140053be0
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x168]
add rdx, 6
mov rax, qword [rsp + 0x178]
mov rax, qword [rax]
mov r9d, 1
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x178]
call qword [rax + 0x28]
test eax, eax
je 0x14009ef51
mov dword [rsp + 0x100], 0
lea rcx, [rsp + 0x58]
call fcn.140053bb0
mov eax, dword [rsp + 0x100]
jmp 0x14009ef97
mov rdx, qword [rsp + 0x168]
add rdx, 6
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x178]
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x160]
call fcn.14009ea70
mov dword [rsp + 0x104], eax
lea rcx, [rsp + 0x58]
call fcn.140053bb0
mov eax, dword [rsp + 0x104]
add rsp, 0x148
pop rdi
pop rsi
ret