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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x178]
call fcn.18004375c
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
test rax, rax
jle 0x18000498d
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
cmp rax, qword [rsp + 0x68]
jle 0x18000498d
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
sub rax, qword [rsp + 0x68]
mov qword [rsp + 0x90], rax
jmp 0x180004999
mov qword [rsp + 0x90], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x140]
call fcn.180006340
nop
movzx eax, byte [rsp + 0x148]
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
movzx eax, al
test eax, eax
jne 0x1800049e4
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x180004d2d
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x70]
and eax, 0x1c0
cmp eax, 0x40
je 0x180004b2c
jmp 0x180004a39
mov rax, qword [rsp + 0x50]
dec rax
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jle 0x180004b2c
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
movzx eax, word [rax + 0x58]
mov word [rsp + 0x28], ax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0xf8], rax
mov eax, 0xffff
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x28]
mov rcx, qword [rsp + 0xf8]
movzx edx, ax
call fcn.180009170
mov word [rsp + 0x2a], ax
movzx eax, word [rsp + 0x2a]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
movzx ecx, word [rsp + 0x38]
movzx ecx, cx
cmp ecx, eax
jne 0x180004afd
mov dword [rsp + 0x58], 1
jmp 0x180004b05
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x25], al
movzx eax, byte [rsp + 0x25]
movzx eax, al
test eax, eax
je 0x180004b27
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x180004b2c
jmp 0x180004a2c
cmp dword [rsp + 0x20], 0
jne 0x180004bd5
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x178]
mov rcx, qword [rsp + 0x98]
call qword [rax + 0x48]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
cmp rax, qword [rsp + 0x68]
je 0x180004bd5
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x180004ce2
jmp 0x180004bef
mov rax, qword [rsp + 0x50]
dec rax
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jle 0x180004ce2
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
movzx eax, word [rax + 0x58]
mov word [rsp + 0x3a], ax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x130], rax
mov eax, 0xffff
mov word [rsp + 0x48], ax
movzx eax, word [rsp + 0x3a]
mov rcx, qword [rsp + 0x130]
movzx edx, ax
call fcn.180009170
mov word [rsp + 0x3c], ax
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x40]
movzx ecx, word [rsp + 0x48]
movzx ecx, cx
cmp ecx, eax
jne 0x180004cb3
mov dword [rsp + 0x5c], 1
jmp 0x180004cbb
mov dword [rsp + 0x5c], 0
movzx eax, byte [rsp + 0x5c]
mov byte [rsp + 0x26], al
movzx eax, byte [rsp + 0x26]
movzx eax, al
test eax, eax
je 0x180004cdd
mov eax, dword [rsp + 0x20]
or eax, 4
mov dword [rsp + 0x20], eax
jmp 0x180004ce2
jmp 0x180004be2
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0xa0]
mov qword [rax + 0x28], 0
jmp 0x180004d2d
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rsp + 0x170]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x88]
cmp qword [rax + 0x48], 0
je 0x180004d7a
mov dword [rsp + 0x64], 0
jmp 0x180004d82
mov dword [rsp + 0x64], 4
mov eax, dword [rsp + 0x78]
or eax, dword [rsp + 0x20]
or eax, dword [rsp + 0x64]
xor r8d, r8d
mov edx, eax
mov rcx, qword [rsp + 0x88]
call fcn.1800085e0
nop
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x138], rax
lea rcx, [rsp + 0x140]
call fcn.180006980
mov rax, qword [rsp + 0x138]
add rsp, 0x168
ret