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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0xf8
mov rax, qword [0x18007f768]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov dword [rsp + 0x20], 0
jmp 0x180036690
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
ja 0x1800366cc
mov eax, dword [rsp + 0x20]
shl rax, 1
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0x20
jae 0x1800366b3
jmp 0x1800366b8
call fcn.180064358
xor eax, eax
mov rcx, qword [rsp + 0x98]
mov word [rsp + rcx + 0xa8], ax
jmp 0x180036686
mov dword [rsp + 0x24], 0
jmp 0x1800366e0
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x110]
cmp dword [rsp + 0x24], eax
jae 0x180036722
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x108]
movzx eax, word [rcx + rax*2]
movzx eax, word [rsp + rax*2 + 0xa8]
inc ax
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x108]
movzx ecx, word [rdx + rcx*2]
mov word [rsp + rcx*2 + 0xa8], ax
jmp 0x1800366d6
mov rax, qword [rsp + 0x120]
mov eax, dword [rax]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0xf
jmp 0x180036744
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 1
jb 0x18003675f
mov eax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0xa8]
test eax, eax
je 0x18003675d
jmp 0x18003675f
jmp 0x18003673a
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x38], eax
jbe 0x180036771
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x30], 0
jne 0x1800367f4
mov byte [rsp + 0x28], 0x40
mov byte [rsp + 0x29], 1
xor eax, eax
mov word [rsp + 0x2a], ax
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
add rax, 4
mov rcx, qword [rsp + 0x118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
add rax, 4
mov rcx, qword [rsp + 0x118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x120]
mov dword [rax], 1
xor eax, eax
jmp 0x180036edb
mov dword [rsp + 0x3c], 1
jmp 0x180036808
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x3c], eax
jae 0x180036826
mov eax, dword [rsp + 0x3c]
movzx eax, word [rsp + rax*2 + 0xa8]
test eax, eax
je 0x180036824
jmp 0x180036826
jmp 0x1800367fe
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x38], eax
jae 0x180036838
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x2c], 1
mov dword [rsp + 0x20], 1
jmp 0x180036854
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
ja 0x180036890
mov eax, dword [rsp + 0x2c]
shl eax, 1
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x20]
movzx eax, word [rsp + rax*2 + 0xa8]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x18003688e
mov eax, 0xffffffff
jmp 0x180036edb
jmp 0x18003684a
cmp dword [rsp + 0x2c], 0
jle 0x1800368b2
cmp dword [rsp + 0x100], 0
je 0x1800368a8
cmp dword [rsp + 0x30], 1
je 0x1800368b2
mov eax, 0xffffffff
jmp 0x180036edb
mov qword [rsp + 0xa0], 2
cmp qword [rsp + 0xa0], 0x20
jae 0x1800368cb
jmp 0x1800368d0
call fcn.180064358
xor eax, eax
mov rcx, qword [rsp + 0xa0]
mov word [rsp + rcx + 0xc8], ax
mov dword [rsp + 0x20], 1
jmp 0x1800368f6
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xf
jae 0x180036929
mov eax, dword [rsp + 0x20]
movzx eax, word [rsp + rax*2 + 0xc8]
mov ecx, dword [rsp + 0x20]
movzx ecx, word [rsp + rcx*2 + 0xa8]
add eax, ecx
mov ecx, dword [rsp + 0x20]
inc ecx
mov ecx, ecx
mov word [rsp + rcx*2 + 0xc8], ax
jmp 0x1800368ec
mov dword [rsp + 0x24], 0
jmp 0x18003693d
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x110]
cmp dword [rsp + 0x24], eax
jae 0x1800369bf
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x108]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x1800369ba
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x108]
movzx eax, word [rcx + rax*2]
movzx eax, word [rsp + rax*2 + 0xc8]
mov rcx, qword [rsp + 0x128]
movzx edx, word [rsp + 0x24]
mov word [rcx + rax*2], dx
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x108]
movzx eax, word [rcx + rax*2]
movzx eax, word [rsp + rax*2 + 0xc8]
inc ax
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x108]
movzx ecx, word [rdx + rcx*2]
mov word [rsp + rcx*2 + 0xc8], ax
jmp 0x180036933
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x1800369da
cmp dword [rsp + 0x60], 1
je 0x1800369fe
jmp 0x180036a23
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x50], 0x14
jmp 0x180036a46
lea rax, [0x180071f50]
mov qword [rsp + 0x90], rax
lea rax, [0x180071f90]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x50], 0x101
jmp 0x180036a46
lea rax, [0x180071fd0]
mov qword [rsp + 0x90], rax
lea rax, [0x180072010]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x5c], 0xffffffff
mov eax, dword [rsp + 0x38]
mov ecx, 1
mov dword [rsp + 0x78], ecx
movzx ecx, al
mov eax, dword [rsp + 0x78]
shl eax, cl
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
dec eax
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x100], 1
jne 0x180036abe
cmp dword [rsp + 0x4c], 0x354
ja 0x180036ad2
cmp dword [rsp + 0x100], 2
jne 0x180036adc
cmp dword [rsp + 0x4c], 0x250
jbe 0x180036adc
mov eax, 1
jmp 0x180036edb
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov byte [rsp + 0x29], al
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
movzx eax, word [rcx + rax*2]
inc eax
cmp eax, dword [rsp + 0x50]
jae 0x180036b20
mov byte [rsp + 0x28], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x2a], ax
jmp 0x180036b8e
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
movzx eax, word [rcx + rax*2]
cmp eax, dword [rsp + 0x50]
jb 0x180036b82
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
movzx eax, word [rcx + rax*2]
sub eax, dword [rsp + 0x50]
mov eax, eax
mov rcx, qword [rsp + 0x70]
movzx eax, byte [rcx + rax*2]
mov byte [rsp + 0x28], al
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
movzx eax, word [rcx + rax*2]
sub eax, dword [rsp + 0x50]
mov eax, eax
mov rcx, qword [rsp + 0x90]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x2a], ax
jmp 0x180036b8e
mov byte [rsp + 0x28], 0x60
xor eax, eax
mov word [rsp + 0x2a], ax
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov ecx, 1
mov dword [rsp + 0x7c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x7c]
shl eax, cl
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x40]
mov ecx, 1
mov dword [rsp + 0x80], ecx
movzx ecx, al
mov eax, dword [rsp + 0x80]
shl eax, cl
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x58]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x44]
movzx ecx, al
mov eax, dword [rsp + 0x34]
shr eax, cl
add eax, dword [rsp + 0x58]
mov eax, eax
mov rcx, qword [rsp + 0x68]
mov edx, dword [rsp + 0x28]
mov dword [rcx + rax*4], edx
cmp dword [rsp + 0x58], 0
jne 0x180036bd8
mov eax, dword [rsp + 0x20]
dec eax
mov ecx, 1
mov dword [rsp + 0x84], ecx
movzx ecx, al
mov eax, dword [rsp + 0x84]
shl eax, cl
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x34]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x180036c4c
mov eax, dword [rsp + 0x48]
shr eax, 1
mov dword [rsp + 0x48], eax
jmp 0x180036c30
cmp dword [rsp + 0x48], 0
je 0x180036c77
mov eax, dword [rsp + 0x48]
dec eax
mov ecx, dword [rsp + 0x34]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
jmp 0x180036c7f
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
movzx eax, word [rsp + rax*2 + 0xa8]
dec ax
mov word [rsp + 0x54], ax
mov eax, dword [rsp + 0x20]
movzx ecx, word [rsp + 0x54]
mov word [rsp + rax*2 + 0xa8], cx
movzx eax, word [rsp + 0x54]
test eax, eax
jne 0x180036ce6
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jne 0x180036cc6
jmp 0x180036e7a
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x128]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x108]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x20], eax
jbe 0x180036e75
mov eax, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x34]
and ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x5c]
je 0x180036e75
cmp dword [rsp + 0x44], 0
jne 0x180036d19
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov ecx, 1
mov dword [rsp + 0x88], ecx
movzx ecx, al
mov eax, dword [rsp + 0x88]
shl eax, cl
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x30]
jae 0x180036dae
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov eax, eax
movzx eax, word [rsp + rax*2 + 0xa8]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jg 0x180036d98
jmp 0x180036dae
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x2c]
shl eax, 1
mov dword [rsp + 0x2c], eax
jmp 0x180036d5b
mov eax, dword [rsp + 0x40]
mov ecx, 1
mov dword [rsp + 0x8c], ecx
movzx ecx, al
mov eax, dword [rsp + 0x8c]
shl eax, cl
mov ecx, dword [rsp + 0x4c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x100], 1
jne 0x180036dea
cmp dword [rsp + 0x4c], 0x354
ja 0x180036dfe
cmp dword [rsp + 0x100], 2
jne 0x180036e08
cmp dword [rsp + 0x4c], 0x250
jbe 0x180036e08
mov eax, 1
jmp 0x180036edb
mov eax, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x34]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x118]
mov rcx, qword [rcx]
movzx edx, byte [rsp + 0x40]
mov byte [rcx + rax*4], dl
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x118]
mov rcx, qword [rcx]
movzx edx, byte [rsp + 0x38]
mov byte [rcx + rax*4 + 1], dl
mov rax, qword [rsp + 0x118]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
sar rax, 2
mov ecx, dword [rsp + 0x5c]
mov rdx, qword [rsp + 0x118]
mov rdx, qword [rdx]
mov word [rdx + rcx*4 + 2], ax
jmp 0x180036adc
cmp dword [rsp + 0x34], 0
je 0x180036ead
mov byte [rsp + 0x28], 0x40
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov byte [rsp + 0x29], al
xor eax, eax
mov word [rsp + 0x2a], ax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
mov edx, dword [rsp + 0x28]
mov dword [rcx + rax*4], edx
mov eax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x118]
mov rcx, qword [rcx]
lea rax, [rcx + rax*4]
mov rcx, qword [rsp + 0x118]
mov qword [rcx], rax
mov rax, qword [rsp + 0x120]
mov ecx, dword [rsp + 0x38]
mov dword [rax], ecx
xor eax, eax
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.180064230
add rsp, 0xf8
ret