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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x78]
movsxd rax, dword [rax + 0x38]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
cqo
mov rcx, qword [rsp + 0x40]
idiv rcx
mov rax, rdx
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x180248ca0
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
mov rcx, qword [rsp + 0x78]
movsxd rcx, dword [rcx + 0x38]
cmp rax, rcx
jle 0x180248c50
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x3c], eax
jmp 0x180248c68
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x78]
mov r9, qword [rax]
mov r8d, dword [rsp + 0x3c]
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax + 0x30]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax + 0x18]
call fcn.180289274
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x180248ca0
mov eax, dword [rsp + 0x34]
jmp 0x180248e7d
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x30]
mov eax, dword [rax + 0x38]
sub eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x80], eax
jg 0x180248cfb
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x88]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
jmp 0x180248e7b
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x80]
cmp dword [rax + 0x10], ecx
jge 0x180248d76
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x10]
shl eax, 1
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x80], eax
jle 0x180248d33
mov eax, dword [rsp + 0x24]
shl eax, 1
mov dword [rsp + 0x24], eax
jmp 0x180248d1a
mov r8d, dword [rsp + 0x24]
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0x70]
call fcn.1802872dc
mov rcx, qword [rsp + 0x78]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rax + 0x20], 0
jne 0x180248d6a
mov eax, 7
jmp 0x180248e7d
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x24]
mov dword [rax + 0x10], ecx
movsxd rax, dword [rsp + 0x2c]
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x78]
mov rdx, qword [rdx + 0x30]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x78]
mov rdi, qword [rdx + 0x20]
mov rsi, rcx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x78]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x80]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jle 0x180248e67
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x38]
cmp dword [rsp + 0x20], eax
jle 0x180248df5
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x28], eax
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.180248bd4
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x180248e1f
mov eax, dword [rsp + 0x38]
jmp 0x180248e7d
movsxd rax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
mov edx, dword [rsp + 0x80]
sub edx, ecx
mov ecx, edx
movsxd rcx, ecx
mov rdx, qword [rsp + 0x78]
mov rdx, qword [rdx + 0x20]
add rdx, rcx
mov rcx, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x48]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x180248dc8
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x20]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x58
pop rdi
pop rsi
ret