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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x64], 0
lea rax, [0x18004a210]
mov qword [rsp + 0x80], rax
lea rax, [0x180049c10]
mov qword [rsp + 0x88], rax
lea rax, [0x180049c70]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 0
mov eax, dword [rsp + 0xf8]
and eax, 0x80000
test eax, eax
je 0x180047709
mov edx, 0x10
lea rcx, [rsp + 0x48]
call fcn.180049550
test eax, eax
jge 0x180047709
mov eax, 0xfffffffd
jmp 0x180047a01
mov eax, 5
mov word [rsp + 0x24], ax
movsx rax, word [rsp + 0x24]
lea rcx, [0x180087f80]
cmp dword [rcx + rax*4], 1
jne 0x180047748
movsx rax, word [rsp + 0x24]
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x24]
lea rdx, [0x180087f80]
mov dword [rdx + rcx*4], eax
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.180049550
mov dword [rsp + 0x2c], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, 0x15
div rcx
mov rax, rdx
mov dword [rsp + 0x3c], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
movsxd rdx, dword [rsp + 0x3c]
lea r8, [0x180087f80]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087f80]
mov dword [rdx + rcx], eax
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.180049550
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x2c], 0
jl 0x1800477f9
cmp dword [rsp + 0x28], 0
jl 0x1800477f9
cmp dword [rsp + 0x2c], 1
jg 0x1800477f9
cmp dword [rsp + 0x28], 3
jle 0x180047803
mov eax, 0xfffffffd
jmp 0x180047a01
movsxd rax, dword [rsp + 0x28]
cmp qword [rsp + rax*8 + 0x80], 0
je 0x18004782b
movsxd rax, dword [rsp + 0x28]
lea rcx, [rsp + 0x48]
call qword [rsp + rax*8 + 0x80]
movzx eax, al
test eax, eax
jne 0x180047835
mov eax, 0xfffffffd
jmp 0x180047a01
cmp dword [rsp + 0x2c], 0
je 0x18004783e
jmp 0x180047882
mov eax, 1
mov word [rsp + 0x20], ax
movsx rax, word [rsp + 0x20]
lea rcx, [0x180087f80]
cmp dword [rcx + rax*4], 1
jne 0x18004787d
movsx rax, word [rsp + 0x20]
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x20]
lea rdx, [0x180087f80]
mov dword [rdx + rcx*4], eax
jmp 0x180047709
mov dword [rsp + 0x64], 0
mov eax, dword [rsp + 0xf8]
and eax, 0x80000
test eax, eax
je 0x1800479e2
mov dword [rsp + 0x38], 0
mov edx, 0x10
lea rcx, [rsp + 0x48]
call fcn.180049550
mov dword [rsp + 0x30], eax
mov edx, 0x10
lea rcx, [rsp + 0x48]
call fcn.180049550
shl eax, 0x10
mov ecx, dword [rsp + 0x30]
or ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0xf0]
call fcn.18004c710
mov rcx, rax
call fcn.180024cc0
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0xf0]
call fcn.18004c710
mov rcx, rax
call fcn.180013dc0
mov rcx, qword [rsp + 0x78]
mov r9, qword [rcx]
mov r8, rax
xor edx, edx
lea rcx, [rsp + 0xa8]
call fcn.1800428f0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.1800442e0
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0xa8]
call fcn.18001b6e0
cmp dword [rsp + 0x34], 0
je 0x18004795f
mov eax, dword [rsp + 0x34]
jmp 0x180047a01
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x38], eax
je 0x180047973
mov eax, 0xfffffffd
jmp 0x180047a01
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, 0x15
div rcx
mov rax, rdx
mov dword [rsp + 0x40], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
movsxd rdx, dword [rsp + 0x40]
lea r8, [0x180087f80]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180087f80]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180087f80]
mov dword [rdx + rcx], eax
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call fcn.18004c3d0
movzx eax, al
test eax, eax
je 0x1800479ff
mov eax, 0xfffffffc
jmp 0x180047a01
xor eax, eax
add rsp, 0xe8
ret