Function at 0x140021850
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, 0x128
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov rax, qword [0x1400eab80]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rcx, qword [rsp + 0x158]
call fcn.14001b1f0
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x68]
call fcn.14000e5d0
nop
lea rcx, [rsp + 0xc0]
call fcn.140002470
test rax, rax
jne 0x1400218c9
xor eax, eax
mov word [rsp + 0x3c], ax
jmp 0x1400218d8
mov rcx, qword [rsp + 0x68]
call fcn.14000e5b0
mov word [rsp + 0x3c], ax
movzx eax, word [rsp + 0x3c]
mov word [rsp + 0x38], ax
mov rcx, qword [rsp + 0x158]
call fcn.14001af30
mov qword [rsp + 0x80], rax
mov eax, 1
imul rax, rax, 0x1a
lea rcx, str.0123456789ABCDEFabcdef_Xx
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 0
lea rdx, str.0123456789ABCDEFabcdef_Xx
add rdx, rcx
mov rcx, rdx
lea r9, [rsp + 0xe0]
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x80]
call fcn.1400146c0
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
call fcn.140023ac0
movzx eax, al
test eax, eax
je 0x14002196c
jmp 0x1400219fc
mov rcx, qword [rsp + 0x140]
call fcn.1400234f0
movzx eax, ax
mov ecx, 2
imul rcx, rcx, 0x17
movzx ecx, word [rsp + rcx + 0xe0]
cmp eax, ecx
jne 0x1400219b5
mov rax, qword [rsp + 0x28]
mov byte [rax], 0x2b
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x140]
call fcn.140023520
jmp 0x1400219fc
mov rcx, qword [rsp + 0x140]
call fcn.1400234f0
movzx eax, ax
mov ecx, 2
imul rcx, rcx, 0x16
movzx ecx, word [rsp + rcx + 0xe0]
cmp eax, ecx
jne 0x1400219fc
mov rax, qword [rsp + 0x28]
mov byte [rax], 0x2d
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x140]
call fcn.140023520
mov eax, dword [rsp + 0x150]
and eax, 0xe00
mov dword [rsp + 0x150], eax
cmp dword [rsp + 0x150], 0x400
jne 0x140021a26
mov dword [rsp + 0x50], 8
jmp 0x140021a69
cmp dword [rsp + 0x150], 0x800
jne 0x140021a3d
mov dword [rsp + 0x48], reloc.OLEAUT32.dll_SafeArrayGetDim
jmp 0x140021a61
cmp dword [rsp + 0x150], 0
jne 0x140021a51
mov dword [rsp + 0x4c], 0
jmp 0x140021a59
mov dword [rsp + 0x4c], 0xa
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x24], eax
mov byte [rsp + 0x20], 0
mov byte [rsp + 0x21], 0
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
call fcn.140023af0
movzx eax, al
test eax, eax
je 0x140021b75
mov rcx, qword [rsp + 0x140]
call fcn.1400234f0
movzx eax, ax
mov ecx, 2
imul rcx, rcx, 0
movzx ecx, word [rsp + rcx + 0xe0]
cmp eax, ecx
jne 0x140021b75
mov byte [rsp + 0x20], 1
mov rcx, qword [rsp + 0x140]
call fcn.140023520
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
call fcn.140023af0
movzx eax, al
test eax, eax
je 0x140021b66
mov rcx, qword [rsp + 0x140]
call fcn.1400234f0
movzx eax, ax
mov ecx, 2
imul rcx, rcx, 0x19
movzx ecx, word [rsp + rcx + 0xe0]
cmp eax, ecx
je 0x140021b3c
mov rcx, qword [rsp + 0x140]
call fcn.1400234f0
movzx eax, ax
mov ecx, 2
imul rcx, rcx, 0x18
movzx ecx, word [rsp + rcx + 0xe0]
cmp eax, ecx
jne 0x140021b66
cmp dword [rsp + 0x24], 0
je 0x140021b4a
cmp dword [rsp + 0x24], 0x10
jne 0x140021b66
mov dword [rsp + 0x24], reloc.OLEAUT32.dll_SafeArrayGetDim
mov byte [rsp + 0x20], 0
mov rcx, qword [rsp + 0x140]
call fcn.140023520
jmp 0x140021b75
cmp dword [rsp + 0x24], 0
jne 0x140021b75
mov dword [rsp + 0x24], 8
cmp dword [rsp + 0x24], 0
je 0x140021ba6
cmp dword [rsp + 0x24], 0xa
je 0x140021ba6
cmp dword [rsp + 0x24], 8
jne 0x140021b94
mov dword [rsp + 0x58], 8
jmp 0x140021b9c
mov dword [rsp + 0x58], 0x16
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x54], eax
jmp 0x140021bae
mov dword [rsp + 0x54], 0xa
movsxd rax, dword [rsp + 0x54]
mov qword [rsp + 0x88], rax
movzx r8d, byte [rsp + 0x20]
mov edx, 1
lea rcx, [rsp + 0xa0]
call fcn.14000c3a0
nop
mov qword [rsp + 0x30], 0
mov eax, 1
imul rax, rax, 0x1f
mov rcx, qword [rsp + 0x138]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
jmp 0x140021c0b
mov rcx, qword [rsp + 0x140]
call fcn.140023520
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x140]
call fcn.140023af0
movzx eax, al
test eax, eax
je 0x140021d5d
mov rcx, qword [rsp + 0x140]
call fcn.1400234f0
movzx edx, ax
lea rcx, [rsp + 0xe0]
call fcn.140023b30
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x70], rax
jae 0x140021cf7
lea rax, str.0123456789ABCDEFabcdef_Xx
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x70]
movzx eax, byte [rax + rdx]
mov byte [rcx], al
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x140021c8d
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x30
je 0x140021cae
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0x28], rax
jae 0x140021cae
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x21], 1
mov byte [rsp + 0x20], 1
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call fcn.14000c5c0
movsx eax, byte [rax]
cmp eax, 0x7f
je 0x140021cf5
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call fcn.14000c5c0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
inc al
mov rcx, qword [rsp + 0x78]
mov byte [rcx], al
jmp 0x140021d58
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call fcn.14000c5c0
movsx eax, byte [rax]
test eax, eax
je 0x140021d32
movzx eax, word [rsp + 0x38]
test eax, eax
je 0x140021d32
mov rcx, qword [rsp + 0x140]
call fcn.1400234f0
movzx eax, ax
movzx ecx, word [rsp + 0x38]
cmp eax, ecx
je 0x140021d36
jmp 0x140021d5d
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0xa0]
call fcn.14000a2d0
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
jmp 0x140021bfe
cmp qword [rsp + 0x30], 0
jne 0x140021d67
jmp 0x140021d94
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call fcn.14000c5c0
movsx eax, byte [rax]
test eax, eax
jle 0x140021d8f
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
jmp 0x140021d94
mov byte [rsp + 0x20], 0
xor edx, edx
lea rcx, [rsp + 0xc0]
call fcn.14000c5c0
mov qword [rsp + 0x40], rax
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140021e76
cmp qword [rsp + 0x30], 0
jbe 0x140021e76
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0x7f
jne 0x140021dd8
jmp 0x140021e76
mov rax, qword [rsp + 0x30]
dec rax
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jbe 0x140021e16
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
mov dword [rsp + 0x60], eax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call fcn.14000c5c0
movsx eax, byte [rax]
mov ecx, dword [rsp + 0x60]
cmp ecx, eax
jne 0x140021e47
cmp qword [rsp + 0x30], 0
jne 0x140021e4e
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
mov dword [rsp + 0x64], eax
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call fcn.14000c5c0
movsx eax, byte [rax]
mov ecx, dword [rsp + 0x64]
cmp ecx, eax
jge 0x140021e4e
mov byte [rsp + 0x20], 0
jmp 0x140021e71
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x40]
movsx eax, byte [rcx + rax]
test eax, eax
jle 0x140021e71
mov rax, qword [rsp + 0x40]
inc rax
mov qword [rsp + 0x40], rax
jmp 0x140021da8
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140021e9f
movzx eax, byte [rsp + 0x21]
test eax, eax
jne 0x140021e9f
mov rax, qword [rsp + 0x28]
mov byte [rax], 0x30
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
jmp 0x140021eb5
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140021eb5
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov byte [rax], 0
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0xa0]
call fcn.140002320
nop
lea rcx, [rsp + 0xc0]
call fcn.140002320
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140054f80
add rsp, 0x128
ret