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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x108
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0x70]
and eax, 2
test eax, eax
je 0x140005a65
mov dword [rsp + 0x68], 0xffffffff
mov eax, dword [rsp + 0x68]
jmp 0x140006022
mov dword [rsp + 0x6c], 0xffffffff
mov eax, dword [rsp + 0x128]
cmp dword [rsp + 0x6c], eax
jne 0x140005a84
mov dword [rsp + 0x3c], 1
jmp 0x140005a8c
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x140005afa
mov dword [rsp + 0x70], 0xffffffff
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x128], eax
je 0x140005ac0
mov eax, dword [rsp + 0x128]
mov dword [rsp + 0x44], eax
jmp 0x140005ae9
mov dword [rsp + 0x74], 0xffffffff
cmp dword [rsp + 0x74], 0
jne 0x140005ad9
mov dword [rsp + 0x40], 1
jmp 0x140005ae1
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
jmp 0x140006022
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x40]
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x58]
movsxd rcx, dword [rcx]
add rcx, qword [rax]
mov rax, rcx
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x58], 0
je 0x140005c00
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x58], rax
jae 0x140005c00
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x128]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
dec eax
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
inc rax
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
movzx ecx, byte [rsp + 0x20]
mov byte [rax], cl
mov rax, qword [rsp + 0x58]
inc rax
mov rcx, qword [rsp + 0x120]
mov qword [rcx + 0x68], rax
mov eax, dword [rsp + 0x128]
jmp 0x140006022
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x58], 0
je 0x140005c3d
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x98]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0x20
jae 0x140005c50
mov qword [rsp + 0x60], 0x20
jmp 0x140005c91
cmp qword [rsp + 0x30], 0x3fffffff
jae 0x140005c6a
mov rax, qword [rsp + 0x30]
shl rax, 1
mov qword [rsp + 0x60], rax
jmp 0x140005c91
cmp qword [rsp + 0x30], 0x7fffffff
jae 0x140005c80
mov qword [rsp + 0x60], 0x7fffffff
jmp 0x140005c91
mov dword [rsp + 0x7c], 0xffffffff
mov eax, dword [rsp + 0x7c]
jmp 0x140006022
mov rax, qword [rsp + 0x120]
add rax, 0x74
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140009870
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x23], 0
movzx eax, byte [rsp + 0x23]
test eax, eax
je 0x140005d1a
mov qword [rsp + 0x48], 0
jmp 0x140005ce5
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x48], rax
je 0x140005d18
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
mov byte [rax], cl
jmp 0x140005cd8
jmp 0x140005d2b
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
inc rax
mov rcx, qword [rsp + 0x120]
mov qword [rcx + 0x68], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x40]
mov rcx, qword [rsp + 0x80]
mov qword [rax], rcx
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xc0]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0x70]
and eax, 4
test eax, eax
je 0x140005e1e
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x38]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x50]
mov dword [rcx], eax
jmp 0x140005ebe
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xc8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x38]
mov rcx, qword [rsp + 0xa0]
mov qword [rax], rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xd0]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x50]
mov dword [rcx], eax
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0x70]
and eax, 1
test eax, eax
je 0x140005f78
mov rax, qword [rsp + 0x120]
add rax, 0x74
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x90], rax
mov byte [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
test eax, eax
je 0x140005f3f
mov rcx, qword [rsp + 0x90]
call fcn.14000d2c4
jmp 0x140005f78
cmp qword [rsp + 0x88], 0x1000
jb 0x140005f62
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x90]
call fcn.140001990
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call fcn.14000d280
nop
mov rax, qword [rsp + 0x120]
mov eax, dword [rax + 0x70]
or eax, 1
mov rcx, qword [rsp + 0x120]
mov dword [rcx + 0x70], eax
movzx eax, byte [rsp + 0x39]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x128]
mov byte [rsp + 0x21], al
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
dec eax
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
inc rax
mov rcx, qword [rsp + 0x120]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
movzx ecx, byte [rsp + 0x21]
mov byte [rax], cl
mov eax, dword [rsp + 0x128]
add rsp, 0x108
pop rdi
pop rsi
ret