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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov eax, dword [rsp + 0x78]
mov ecx, dword [rsp + 0x88]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
mov ecx, dword [rsp + 0x90]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jle 0x18011e9b8
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x90], eax
jl 0x18011e9b8
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x80], eax
jle 0x18011e9bf
xor al, al
jmp 0x18011ecec
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x80], eax
jge 0x18011ea1e
mov eax, dword [rsp + 0x80]
mov ecx, dword [rsp + 0x98]
sub ecx, eax
mov eax, ecx
mov r8d, dword [rsp + 0x24]
mov edx, eax
mov ecx, dword [rsp + 0x20]
call fcn.18004e9b0
mov ecx, dword [rsp + 0x78]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
movzx ecx, al
mov eax, dword [rsp + 0x98]
sar eax, cl
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 0
jmp 0x18011ea4e
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
movzx ecx, al
mov eax, dword [rsp + 0x80]
sar eax, cl
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
dec eax
mov ecx, dword [rsp + 0x80]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0x90], eax
jle 0x18011ea7f
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
movzx ecx, al
mov eax, dword [rsp + 0xa0]
sar eax, cl
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x34], 0
jmp 0x18011eaaf
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
movzx ecx, al
mov eax, dword [rsp + 0x90]
sar eax, cl
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
dec eax
mov ecx, dword [rsp + 0x90]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x30], 0
jle 0x18011eaff
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x28], eax
jne 0x18011eac9
xor al, al
jmp 0x18011ecec
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x30]
mov eax, dword [rax + 4]
sub eax, ecx
mov r8d, dword [rsp + 0x24]
mov edx, eax
mov ecx, dword [rsp + 0x20]
call fcn.18004e9b0
mov ecx, dword [rsp + 0x78]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
jmp 0x18011eb2b
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax + 0x6b]
test eax, eax
je 0x18011eb2b
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x30]
sub rax, 4
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x6b], 0
cmp dword [rsp + 0x34], 0
jne 0x18011eb39
mov byte [rsp + 0x50], 1
jmp 0x18011eb3e
mov byte [rsp + 0x50], 0
mov rax, qword [rsp + 0x70]
movzx ecx, byte [rsp + 0x50]
mov byte [rax + 0x6b], cl
mov rax, qword [rsp + 0x70]
movsx eax, byte [rax + 0x6a]
test eax, eax
je 0x18011eb71
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x70]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x20], ecx
mov rax, qword [rsp + 0x70]
mov byte [rax + 0x6a], 0
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
inc eax
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x30]
lea rax, [rcx + rax*4]
mov rcx, qword [rsp + 0x70]
cmp rax, qword [rcx + 0x28]
jb 0x18011ebc8
lea r8, [0x1801b4dd0]
mov edx, 0x420
mov ecx, 0x62
call fcn.18012c620
or eax, 0x62
mov rcx, qword [rsp + 0x70]
mov dword [rcx + 0x38], eax
mov al, 1
jmp 0x18011ecec
cmp dword [rsp + 0x20], 0
jle 0x18011ec0b
mov r8d, dword [rsp + 0x24]
mov edx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 4]
call fcn.180051760
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
imul eax, dword [rsp + 0x20]
cdq
idiv dword [rsp + 0x24]
mov eax, edx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x20], 1
jmp 0x18011ec51
mov eax, dword [rsp + 0x20]
neg eax
mov r8d, dword [rsp + 0x24]
mov edx, eax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 4]
call fcn.180051760
neg eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x20]
neg eax
mov rcx, qword [rsp + 0x70]
mov ecx, dword [rcx + 4]
imul ecx, eax
mov eax, ecx
cdq
idiv dword [rsp + 0x24]
mov eax, edx
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x20], 0xffffffff
mov eax, dword [rsp + 0x24]
neg eax
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
cmp dword [rsp + 0x38], 0
jle 0x18011ecdc
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x78]
mov dword [rax], ecx
mov rax, qword [rsp + 0x48]
add rax, 4
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x78]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x18011ecd0
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x44]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x78]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x38]
dec eax
mov dword [rsp + 0x38], eax
jmp 0x18011ec69
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x30], rcx
xor al, al
add rsp, 0x60
pop rdi
ret