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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov qword [rsp + 0xa0], rax
xor eax, eax
mov word [rsp + 0x38], ax
mov dword [rsp + 0x5c], 0
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x30], rax
jmp 0x140152e5d
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
add rax, 0x38
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x24], eax
jge 0x140152f4c
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x12]
and eax, 0xffffffbf
mov rcx, qword [rsp + 0x30]
mov word [rcx + 0x12], ax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xe8]
mov ecx, dword [rcx + 0x44]
cmp dword [rax + 0x1c], ecx
je 0x140152e9e
jmp 0x140152e45
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rax + 0x28]
and rax, rcx
test rax, rax
je 0x140152eb9
jmp 0x140152e45
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
btr eax, 0xb
test eax, eax
jne 0x140152ecf
jmp 0x140152e45
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x12]
and eax, 0x80
test eax, eax
je 0x140152ee6
jmp 0x140152e45
mov rax, qword [rsp + 0xe8]
movzx eax, byte [rax + 0x3c]
and eax, 0x58
test eax, eax
je 0x140152f28
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov eax, dword [rax + 4]
and eax, 3
test eax, eax
je 0x140152f23
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rcx, qword [rsp + 0xe8]
mov ecx, dword [rcx + 0x44]
cmp dword [rax + 0x34], ecx
je 0x140152f28
jmp 0x140152e45
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x12]
or eax, 0x40
mov rcx, qword [rsp + 0x30]
mov word [rcx + 0x12], ax
jmp 0x140152e45
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x70], 0
je 0x14015315e
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x24], 0
jmp 0x140152f7f
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x24], eax
jge 0x1401530e8
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400c75a0
test eax, eax
je 0x140152fb5
jmp 0x140152f75
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x70]
movzx eax, byte [rcx + rax + 0x18]
and eax, 2
test eax, eax
je 0x140152fd4
jmp 0x1401530e8
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
cmp eax, 0xa7
jne 0x140152ffd
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xe8]
mov ecx, dword [rcx + 0x44]
cmp dword [rax + 0x2c], ecx
jne 0x140152ffd
jmp 0x140152f75
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax]
cmp eax, 0x71
jne 0x1401530e1
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax]
cmp eax, 0xa7
jne 0x1401530e1
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xe8]
mov ecx, dword [rcx + 0x44]
cmp dword [rax + 0x2c], ecx
jne 0x1401530e1
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
movzx ecx, word [rcx + 0x30]
mov word [rax + 0x30], cx
mov rax, qword [rsp + 0x80]
movsx eax, word [rax + 0x30]
test eax, eax
jge 0x14015307b
jmp 0x140152f75
mov rax, qword [rsp + 0x80]
movsx rax, word [rax + 0x30]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0xb0]
add rax, qword [rcx + 8]
mov rcx, rax
call fcn.1400ad510
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
jne 0x1401530c2
lea rax, [0x1401756ac]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.140091b50
test eax, eax
jne 0x1401530e1
jmp 0x140152f75
jmp 0x1401530e8
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x24], eax
jne 0x14015315e
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0x44]
and eax, 0x80
test eax, eax
je 0x140153143
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0x44]
and eax, 0x200
test eax, eax
je 0x14015312e
mov dword [rsp + 0x78], 1
jmp 0x140153136
mov dword [rsp + 0x78], 0
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x5c], eax
jmp 0x14015315e
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0x44]
and eax, 0x40
test eax, eax
je 0x14015315e
mov dword [rsp + 0x5c], 1
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x14
movsxd rcx, dword [rsp + 0x48]
lea rax, [rax + rcx*8 + 0x60]
movsxd rcx, dword [rsp + 0x3c]
lea rax, [rax + rcx*8 + 0x28]
mov rdx, rax
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call fcn.1400a3f10
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1401531b6
lea rdx, str.out_of_memory
mov rcx, qword [rsp + 0xa0]
call fcn.1400a4ee0
xor eax, eax
jmp 0x14015358f
mov eax, 0x60
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax*8 + 0x20]
mov qword [rsp + 0x40], rax
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
lea rax, [rcx + rax*8]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xb8]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xd8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa0]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x5c]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x68]
mov dword [rax + 0x14], 0
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x30], rax
jmp 0x1401532bc
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
add rax, 0x38
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x24], eax
jge 0x1401534b9
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x12]
and eax, 0x40
test eax, eax
jne 0x1401532e3
jmp 0x1401532a4
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
mov edx, dword [rdx + 0x20]
mov dword [rcx + rax], edx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov edx, dword [rsp + 0x24]
mov dword [rcx + rax + 8], edx
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
and eax, 0x3fff
mov word [rsp + 0x28], ax
movzx eax, word [rsp + 0x28]
cmp eax, 1
jne 0x140153392
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x12]
and eax, 0x8000
test eax, eax
jne 0x140153388
cmp dword [rsp + 0x20], 0x1f
jg 0x14015336a
mov eax, dword [rsp + 0x20]
mov ecx, 1
mov dword [rsp + 0x90], ecx
movzx ecx, al
mov eax, dword [rsp + 0x90]
shl eax, cl
mov dword [rsp + 0x7c], eax
jmp 0x140153372
mov dword [rsp + 0x7c], 0
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x7c]
mov eax, dword [rax + 0x14]
or eax, ecx
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 0x14], eax
mov eax, 2
mov word [rsp + 0x28], ax
movzx eax, word [rsp + 0x28]
cmp eax, 0x40
jne 0x1401533bc
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
movzx edx, byte [rdx + 0x17]
mov byte [rcx + rax + 4], dl
jmp 0x1401534aa
movzx eax, word [rsp + 0x28]
and eax, 0x180
test eax, eax
je 0x140153403
movzx eax, word [rsp + 0x28]
cmp eax, 0x100
jne 0x1401533eb
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 4], 0x47
jmp 0x1401533fe
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 4], 0x48
jmp 0x1401534aa
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
movzx edx, byte [rsp + 0x28]
mov byte [rcx + rax + 4], dl
movzx eax, word [rsp + 0x28]
and eax, 0x3c
test eax, eax
je 0x1401534aa
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov rcx, qword [rax + 0x18]
call fcn.1400df830
test eax, eax
je 0x1401534aa
cmp dword [rsp + 0x20], 0x10
jge 0x140153470
mov eax, dword [rsp + 0x20]
mov ecx, 1
mov dword [rsp + 0x94], ecx
movzx ecx, al
mov eax, dword [rsp + 0x94]
shl eax, cl
movzx ecx, word [rsp + 0x38]
or ecx, eax
mov eax, ecx
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x28]
cmp eax, 0x10
jne 0x14015348d
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 4], 8
movzx eax, word [rsp + 0x28]
cmp eax, 4
jne 0x1401534aa
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax + 4], 0x20
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x1401532a4
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
jmp 0x1401534e0
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x24], eax
jge 0x14015356e
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.1400c75a0
test eax, eax
je 0x14015351c
jmp 0x1401534d6
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xa8]
movsx ecx, word [rcx + 0x30]
mov rdx, qword [rsp + 0x88]
mov dword [rdx + rax*8], ecx
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x70]
movzx eax, byte [rcx + rax + 0x18]
and eax, 1
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x88]
mov byte [rdx + rcx*8 + 4], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x1401534d6
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0xf0]
movzx ecx, word [rsp + 0x38]
mov word [rax], cx
mov rax, qword [rsp + 0x50]
add rsp, 0xc8
ret