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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x50], 0
mov dword [rsp + 4], 0
mov dword [rsp + 0x10], 0
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x4c]
mov dword [rsp], eax
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
mov dword [rsp + 8], 0
jmp 0x1800051bf
mov eax, dword [rsp + 8]
add eax, 1
mov dword [rsp + 8], eax
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 8], eax
jge 0x180005560
mov eax, dword [rsp + 8]
imul eax, dword [rsp + 0x90]
movsxd rcx, eax
mov rax, qword [rsp + 0x80]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x18], rax
mov dword [rsp + 0xc], 0
jmp 0x180005205
mov eax, dword [rsp + 0xc]
add eax, 1
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0xc], eax
jge 0x18000555b
movsxd rcx, dword [rsp + 0xc]
mov rax, qword [rsp + 0x18]
movzx ecx, word [rax + rcx*2]
movzx eax, word [rsp + 0xa0]
cmp ecx, eax
je 0x180005556
movsxd rcx, dword [rsp + 0xc]
mov rax, qword [rsp + 0x18]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x64], ax
mov eax, dword [rsp + 8]
sub eax, 1
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 8]
mov dword [rsp + 0x60], eax
jmp 0x18000526f
mov eax, dword [rsp + 0x60]
add eax, 1
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x60], eax
jge 0x180005357
mov eax, dword [rsp + 0x60]
imul eax, dword [rsp + 0x90]
movsxd rcx, eax
mov rax, qword [rsp + 0x80]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x30], rax
movsxd rcx, dword [rsp + 0xc]
mov rax, qword [rsp + 0x30]
movzx ecx, word [rax + rcx*2]
movzx eax, word [rsp + 0x64]
cmp ecx, eax
je 0x1800052bc
jmp 0x180005357
mov eax, dword [rsp + 0xc]
mov dword [rsp + 0x20], eax
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
movzx ecx, word [rax + rcx*2]
movzx eax, word [rsp + 0x64]
cmp ecx, eax
jne 0x1800052f5
mov eax, dword [rsp + 0x90]
cmp dword [rsp + 0x20], eax
jge 0x1800052f5
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
jmp 0x1800052c4
mov eax, dword [rsp + 0x20]
sub eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 8]
cmp dword [rsp + 0x60], eax
jne 0x18000531a
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
cmp dword [rsp + 0x20], eax
jge 0x18000532c
mov eax, dword [rsp + 0x20]
mov dword [rsp + 4], eax
cmp dword [rsp + 0x38], 0
jle 0x18000534a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
jl 0x18000534a
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
jmp 0x180005352
mov dword [rsp + 0x38], 0
jmp 0x180005264
mov eax, dword [rsp + 0x60]
sub eax, 1
mov dword [rsp + 0x24], eax
mov ecx, dword [rsp + 0xc]
mov eax, dword [rsp + 0x50]
sub eax, ecx
add eax, 1
mov dword [rsp + 0x40], eax
mov ecx, dword [rsp + 8]
mov eax, dword [rsp + 0x3c]
sub eax, ecx
add eax, 1
mov dword [rsp + 0x48], eax
mov ecx, dword [rsp + 0xc]
mov eax, dword [rsp + 4]
sub eax, ecx
add eax, 1
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 8]
mov eax, dword [rsp + 0x24]
sub eax, ecx
add eax, 1
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0xc]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 8]
mov dword [rsp + 0x14], eax
mov ecx, dword [rsp + 0x40]
imul ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0x28]
imul eax, dword [rsp + 0x2c]
cmp ecx, eax
jle 0x1800053de
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x58], eax
jmp 0x1800053ee
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0xb0], 0
je 0x18000540a
mov ecx, dword [rsp]
mov eax, dword [rsp + 0x4c]
sub eax, ecx
add eax, 2
mov dword [rsp + 0x54], eax
jmp 0x18000541a
mov ecx, dword [rsp]
mov eax, dword [rsp + 0x4c]
sub eax, ecx
add eax, 4
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x90]
imul eax, dword [rsp + 0x98]
shl eax, 1
cmp dword [rsp + 0x54], eax
jle 0x180005438
xor eax, eax
jmp 0x180005578
mov eax, dword [rsp + 0x10]
add eax, 1
mov dword [rsp + 0x10], eax
cmp dword [rsp + 0xb0], 0
jne 0x18000548d
movsxd rdx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x88]
movzx eax, byte [rsp + 0x64]
mov byte [rcx + rdx], al
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
movsxd rdx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x88]
movzx eax, byte [rsp + 0x65]
mov byte [rcx + rdx], al
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
mov edx, dword [rsp + 0x5c]
shl edx, 4
or edx, dword [rsp + 0x14]
movsxd rcx, dword [rsp + 0x4c]
mov rax, qword [rsp + 0x88]
mov byte [rax + rcx], dl
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
mov edx, dword [rsp + 0x44]
sub edx, 1
shl edx, 4
mov eax, dword [rsp + 0x58]
sub eax, 1
or edx, eax
movsxd rcx, dword [rsp + 0x4c]
mov rax, qword [rsp + 0x88]
mov byte [rax + rcx], dl
mov eax, dword [rsp + 0x4c]
add eax, 1
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x14]
mov dword [rsp + 0x60], eax
jmp 0x1800054f6
mov eax, dword [rsp + 0x60]
add eax, 1
mov dword [rsp + 0x60], eax
mov ecx, dword [rsp + 0x58]
mov eax, dword [rsp + 0x14]
add eax, ecx
cmp dword [rsp + 0x60], eax
jge 0x180005556
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x20], eax
jmp 0x18000551b
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x44]
mov eax, dword [rsp + 0x5c]
add eax, ecx
cmp dword [rsp + 0x20], eax
jge 0x180005554
mov eax, dword [rsp + 0x60]
imul eax, dword [rsp + 0x90]
add eax, dword [rsp + 0x20]
movsxd rdx, eax
mov rcx, qword [rsp + 0x80]
movzx eax, word [rsp + 0xa0]
mov word [rcx + rdx*2], ax
jmp 0x180005510
jmp 0x1800054eb
jmp 0x1800051fa
jmp 0x1800051b4
movsxd rdx, dword [rsp]
mov rcx, qword [rsp + 0x88]
movzx eax, byte [rsp + 0x10]
mov byte [rcx + rdx], al
mov eax, dword [rsp + 0x4c]
add rsp, 0x78
ret