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

Disassembly:
mov eax, dword [rsp + 0x40]
cmp dword [rax + 0x30], 0
je 0x140066016
mov edx, dword [rsp]
mov ecx, dword [rdx + 0x9c]
cmp ecx, dword [rsp + 0xc]
jae 0x140065998
mov eax, dword [rsp + 0x40]
mov edx, dword [rax + 0xc]
mov dword [rsp + 0x20], edx
mov ecx, dword [rsp + 0x20]
add ecx, ecx
mov dword [rsp + 0x24], ecx
xor eax, eax
mov dword [rsp + 0x4c], eax
jmp 0x1400659d0
mov edx, dword [rsp + 0x40]
mov eax, dword [rdx + 0x20]
mov edx, dword [rsp + 0x40]
mov ecx, dword [rdx + 0xc]
xor edx, edx
div ecx
mov dword [rsp + 0x20], edx
cmp dword [rsp + 0x20], 0
jne 0x1400659c0
mov eax, dword [rsp + 0x40]
mov eax, dword [rax + 0xc]
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov dword [rsp + 0x4c], 1
mov ecx, dword [rsp]
cmp dword [rcx + 0x9c], 0
jbe 0x140065a31
mov eax, dword [rsp + 0x40]
mov edx, dword [rax + 0xc]
add dword [rsp + 0x24], edx
mov ecx, dword [rsp + 0x24]
push rcx
push 0
mov eax, dword [rsp + 8]
mov edx, dword [rsp + 0x48]
mov ecx, dword [rax + 0x9c]
mov eax, dword [rsp + 0x10]
imul rcx, qword [r10 + 0xc]
mov edx, dword [rsp + 0x20]
mov edx, dword [rax + rdx*4 + 0x48]
mov eax, dword [rsp + 8]
mov ebx, dword [rax + 4]
call qword [rbx + 0x20]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x40]
mov edx, dword [rax + 0xc]
shl edx, 2
add dword [rsp + 0x28], edx
xor ecx, ecx
mov dword [rsp + 0x48], ecx
jmp 0x140065a5c
mov eax, dword [rsp + 0x24]
push rax
push 0
mov eax, dword [rsp + 8]
mov ecx, dword [rsp + 0x20]
mov edx, dword [rsp + 0x10]
mov ebx, dword [rax + 4]
mov edx, dword [rdx + rcx*4 + 0x48]
xor ecx, ecx
call qword [rbx + 0x20]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x48], 1
mov ecx, dword [rsp + 0x18]
mov eax, dword [rsp + 8]
shl ecx, 3
mov edx, dword [rax + 0x70]
lea ecx, [rcx + rcx*2]
add edx, ecx
mov dword [rsp + 0x50], edx
mov eax, dword [rsp + 0x40]
mov edx, dword [rax + 0x4c]
mov dword [rsp + 0x54], edx
mov ecx, dword [rsp + 0x54]
movzx eax, word [rcx]
mov dword [rsp + 0x58], eax
mov edx, dword [rsp + 0x54]
movzx ecx, word [rdx + 2]
mov dword [rsp + 0x5c], ecx
mov eax, dword [rsp + 0x54]
movzx edx, word [rax + 0x10]
mov dword [rsp + 0x64], edx
mov ecx, dword [rsp + 0x54]
movzx eax, word [rcx + 0x20]
mov dword [rsp + 0x6c], eax
mov edx, dword [rsp + 0x54]
push rsp
movzx ecx, word [rdx + 0x12]
mov dword [rsp + 0x68], ecx
mov eax, dword [rsp + 0x54]
movzx edx, word [rax + 4]
mov dword [rsp + 0x60], edx
mov ecx, dword [rsp]
mov edx, dword [rsp + 0x18]
mov eax, dword [rcx + 0x1c0]
mov ecx, dword [rax + rdx*4 + 4]
mov dword [rsp + 0x44], ecx
mov eax, dword [rsp + 4]
mov edx, dword [rsp + 0x18]
mov ecx, dword [rax + rdx*4]
xor eax, eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x1c], eax
mov edx, dword [rsp + 0x28]
mov ecx, edx
mov dword [rsp + 0x94], ecx
mov eax, dword [rsp + 0x1c]
cmp eax, dword [rsp + 0x20]
jge 0x140066016
mov edx, dword [rsp + 0x94]
mov ecx, dword [rdx]
mov dword [rsp + 0x2c], ecx
cmp dword [rsp + 0x48], 0
je 0x140065b2f
cmp dword [rsp + 0x1c], 0
jne 0x140065b2f
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x30], eax
jmp 0x140065b3d
mov edx, dword [rsp + 0x94]
mov ecx, dword [rdx - 4]
mov dword [rsp + 0x30], ecx
cmp dword [rsp + 0x4c], 0
je 0x140065b59
mov eax, dword [rsp + 0x20]
cmp rax, qword [rsp + 0x1c]
jne 0x140065b59
mov edx, dword [rsp + 0x2c]
mov dword [rsp + 0x34], edx
jmp 0x140065b67
mov ecx, dword [rsp + 0x94]
mov eax, dword [rcx + 4]
mov dword [rsp + 0x34], eax
mov edx, dword [rsp + 0x30]
movsx ecx, word [rdx]
mov dword [rsp + 0x78], ecx
mov dword [rsp + 0x74], ecx
mov dword [rsp + 0x70], ecx
mov eax, dword [rsp + 0x2c]
movsx edx, word [rax]
mov dword [rsp + 0x80], edx
mov dword [rsp + 0x7c], edx
mov eax, dword [rsp + 0x34]
mov esi, edx
movsx edx, word [rax]
mov dword [rsp + 0x8c], edx
mov dword [rsp + 0x88], edx
add byte [rax], al
add byte [rcx + 0x842494], cl
add byte [rax], al
xor eax, eax
mov dword [rsp + 0x3c], eax
xor edx, edx
mov ecx, dword [rsp + 0x40]
mov eax, dword [rcx + 0x1c]
mov qword [rsp + 0x14], rax
mov dword [rsp + 0x10], edx
mov ecx, dword [rsp + 0x10]
cmp ecx, dword [rsp + 0x14]
ja 0x140065fee
lea edx, [rsp + 0x98]
mov ecx, 1
mov eax, dword [rsp + 0x2c]
call fcn.140069b58
mov eax, dword [rsp + 0x10]
cmp eax, dword [rsp + 0x14]
jae 0x140065c22
mov edx, dword [rsp + 0x30]
movsx ecx, word [rdx + 0x80]
mov dword [rsp + 0x78], ecx
mov eax, dword [rsp + 0x2c]
movsx edx, word [rax + 0x80]
mov dword [rsp + 0x80], edx
mov ecx, dword [rsp + 0x34]
movsx eax, word [rcx + 0x80]
mov dword [rsp + 0x8c], eax
mov edx, dword [rsp + 0x50]
mov ebx, dword [rdx + 4]
test ebx, ebx
je 0x140065cc4
cmp word [rsp + 0x9a], 0
jne 0x140065cc4
mov ecx, esi
sub ecx, dword [rsp + 0x80]
imul ecx, dword [rsp + 0x58]
shl ecx, 2
lea ecx, [rcx + rcx*8]
test ecx, ecx
jl 0x140065c8a
mov eax, dword [rsp + 0x5c]
mov edx, dword [rsp + 0x5c]
shl eax, 7
shl edx, 8
add eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x140065cbc
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x140065cbc
mov ecx, ebx
mov eax, 1
shl eax, cl
jmp 0x140065cbc
mov eax, dword [rsp + 0x5c]
mov edx, dword [rsp + 0x5c]
and al, 0x5c
shl eax, 7
shl edx, 8
sub eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x140065cba
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x140065cba
mov ecx, ebx
mov eax, 1
shl eax, cl
neg rax
neg eax
mov word [rsp + 0x9a], ax
mov edx, dword [rsp + 0x50]
mov ebx, dword [rdx + 8]
test ebx, ebx
je 0x140065d69
cmp word [rsp + 0xa8], 0
jne 0x140065d69
mov eax, dword [rsp + 0x74]
sub eax, dword [rsp + 0x88]
imul dword [rsp + 0x58]
mov ecx, eax
shl ecx, 2
lea ecx, [rcx + rcx*8]
test ecx, ecx
jl 0x140065d2f
mov eax, dword [rsp + 0x64]
mov edx, dword [rsp + 0x64]
shl eax, 7
shl edx, 8
add eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x140065d61
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x140065d61
mov ecx, ebx
mov eax, 1
shl eax, cl
jmp 0x140065d61
mov eax, dword [rsp + 0x64]
mov edx, dword [rsp + 0x64]
shl eax, 7
shl edx, 8
sub eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x140065d5f
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x140065d5f
mov ecx, ebx
mov eax, 1
shl eax, cl
neg rax
neg eax
mov word [rsp + 0xa8], ax
mov edx, dword [rsp + 0x50]
mov ebx, dword [rdx + 0xc]
test ebx, ebx
je 0x140065e11
cmp word [rsp + 0xb8], 0
jne 0x140065e11
mov eax, dword [rsp + 0x74]
mov edx, dword [rsp + 0x7c]
add eax, dword [rsp + 0x88]
add edx, edx
sub eax, edx
imul dword [rsp + 0x58]
lea ecx, [rax + rax*8]
test ecx, ecx
jl 0x140065dd7
mov eax, dword [rsp + 0x6c]
mov edx, dword [rsp + 0x6c]
shl eax, 7
shl edx, 8
add eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x140065e09
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x140065e09
mov ecx, ebx
mov eax, 1
shl eax, cl
jmp 0x140065e09
mov eax, dword [rsp + 0x6c]
mov edx, dword [rsp + 0x6c]
shl eax, 7
shl edx, 8
sub eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x140065e07
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x140065e07
mov ecx, ebx
mov eax, 1
shl eax, cl
neg rax
neg eax
mov word [rsp + 0xb8], ax
mov edx, dword [rsp + 0x50]
mov ebx, dword [rdx + 0x10]
test ebx, ebx
je 0x140065ebc
cmp word [rsp + 0xaa], 0
jne 0x140065ebc
mov eax, dword [rsp + 0x70]
sub eax, dword [rsp + 0x78]
sub eax, dword [rsp + 0x84]
add eax, dword [rsp + 0x8c]
imul dword [rsp + 0x58]
lea ecx, [rax + rax*4]
test ecx, ecx
jl 0x140065e82
mov eax, dword [rsp + 0x68]
mov edx, dword [rsp + 0x68]
shl eax, 7
shl edx, 8
add eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x140065eb4
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x140065eb4
mov ecx, ebx
mov eax, 1
shl eax, cl
jmp 0x140065eb4
mov eax, dword [rsp + 0x68]
mov edx, dword [rsp + 0x68]
shl eax, 7
shl edx, 8
sub eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x140065eb2
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x140065eb2
mov ecx, ebx
mov eax, 1
shl eax, cl
neg rax
neg eax
mov word [rsp + 0xaa], ax
mov edx, dword [rsp + 0x50]
mov ebx, dword [rdx + 0x14]
test ebx, ebx
je 0x140065f61
cmp word [rsp + 0x9c], 0
jne 0x140065f61
add esi, dword [rsp + 0x80]
mov eax, dword [rsp + 0x7c]
add eax, eax
sub esi, eax
imul esi, dword [rsp + 0x58]
lea ecx, [rsi + rsi*8]
test ecx, ecx
jl 0x140065f27
mov eax, dword [rsp + 0x60]
mov edx, dword [rsp + 0x60]
shl eax, 7
shl edx, 8
add eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x140065f59
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x140065f59
mov ecx, ebx
mov eax, 1
shl eax, cl
jmp 0x140065f59
mov eax, dword [rsp + 0x60]
mov edx, dword [rsp + 0x60]
shl eax, 7
shl edx, 8
sub eax, ecx
mov ecx, edx
cdq
idiv ecx
test ebx, ebx
jle 0x140065f57
mov ecx, ebx
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x140065f57
mov ecx, ebx
mov eax, 1
shl eax, cl
neg rax
neg eax
mov word [rsp + 0x9c], ax
mov edx, dword [rsp + 0x38]
push rdx
mov eax, dword [rsp + 0x40]
push rax
lea ecx, [rsp + 0xa0]
mov edx, dword [rsp + 0x48]
mov eax, dword [rsp + 8]
call qword [rsp + 0x4c]
mov edx, dword [rsp + 0x74]
mov dword [rsp + 0x70], edx
mov ecx, dword [rsp + 0x78]
mov dword [rsp + 0x74], ecx
mov esi, dword [rsp + 0x7c]
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x7c], eax
mov edx, dword [rsp + 0x88]
mov dword [rsp + 0x84], edx
mov ecx, dword [rsp + 0x8c]
mov dword [rsp + 0x88], ecx
add dword [rsp + 0x2c], 0x80
add dword [rsp + 0x30], 0x80
add dword [rsp + 0x34], 0x80
mov eax, dword [rsp + 0x40]
mov edx, dword [rax + 0x24]
add dword [rsp + 0x3c], edx
inc dword [rsp + 0x10]
mov ecx, dword [rsp + 0x10]
cmp ecx, dword [rsp + 0x14]
jbe 0x140065bd0
mov eax, dword [rsp + 0x40]
mov edx, dword [rax + 0x24]
shl edx, 2
add dword [rsp + 0x38], edx
inc dword [rsp + 0x1c]
add dword [rsp + 0x94], 4
mov ecx, dword [rsp + 0x1c]
cmp ecx, dword [rsp + 0x20]
jl 0x140065b0a
inc dword [rsp + 0x18]
add dword [rsp + 0x40], 0x54
mov eax, dword [rsp]
mov edx, dword [rax + 0x24]
cmp edx, dword [rsp + 0x18]
jg 0x14006595e
mov ecx, dword [rsp]
inc dword [rcx + 0x9c]
mov eax, dword [rcx + 0x9c]
mov edx, dword [rsp]
cmp eax, dword [rdx + 0x140]
jae 0x140066050
mov eax, 3
jmp 0x140066055
mov eax, 4
add esp, 0x118
pop rsi
pop rbx
ret