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

Disassembly:
sub rsp, 0xe8
cmp dword [0x1400d7580], 0
je 0x1400207aa
mov eax, 1
jmp 0x140020c0f
mov rax, qword gs:[0x60]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x98]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0x50], rax
jmp 0x140020815
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x30], 0
je 0x140020901
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
add rax, 0x88
mov qword [rsp + 0xb0], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0xb0]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140020899
jmp 0x1400207fe
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
or eax, 0x20202020
cmp eax, 0x6c64746e
je 0x1400208e3
jmp 0x1400207fe
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
jne 0x1400208fc
jmp 0x140020901
jmp 0x1400207fe
cmp qword [rsp + 0x40], 0
jne 0x140020910
xor eax, eax
jmp 0x140020c0f
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x24], 0
lea rax, [0x1400d7584]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0xb8]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
movzx eax, word [rax]
cmp eax, 0x775a
jne 0x140020a15
mov rcx, qword [rsp + 0x88]
call fcn.1400206b0
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov dword [rdx + rcx*8], eax
mov eax, dword [rsp + 0x30]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0xc0]
movzx eax, word [rcx + rax*2]
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0xc8]
mov eax, dword [r8 + rax*4]
mov dword [rdx + rcx*8 + 4], eax
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x1f4
jne 0x140020a15
jmp 0x140020a2a
mov eax, dword [rsp + 0x30]
dec eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140020981
mov eax, dword [rsp + 0x24]
mov dword [0x1400d7580], eax
mov dword [rsp + 0x24], 0
jmp 0x140020a48
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [0x1400d7580]
dec eax
cmp dword [rsp + 0x24], eax
jae 0x140020c0a
mov dword [rsp + 0x20], 0
jmp 0x140020a6e
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
mov ecx, dword [0x1400d7580]
sub ecx, eax
mov eax, ecx
dec eax
cmp dword [rsp + 0x20], eax
jae 0x140020c05
mov eax, dword [rsp + 0x20]
mov qword [rsp + 0xd0], rax
mov ecx, dword [rsp + 0x20]
inc ecx
mov dword [rsp + 0x64], ecx
lea rcx, [0x140083520]
call fcn.140036128
neg eax
mov dword [rsp + 0x58], eax
lea rcx, [0x140083528]
call fcn.140036128
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x5c], eax
lea rcx, [0x140083530]
call fcn.140036128
mov ecx, dword [rsp + 0x5c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
lea rcx, [0x140083534]
call fcn.140036128
mov ecx, dword [rsp + 0x60]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x64]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x28]
mov eax, dword [rdx + rax*8 + 4]
mov rdx, qword [rsp + 0xd0]
cmp dword [rcx + rdx*8 + 4], eax
jbe 0x140020c00
lea rcx, [0x140083520]
call fcn.140036128
neg eax
mov dword [rsp + 0x68], eax
lea rcx, [0x140083528]
call fcn.140036128
mov ecx, dword [rsp + 0x68]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
lea rcx, [0x140083530]
call fcn.140036128
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x70], eax
lea rcx, [0x140083534]
call fcn.140036128
mov ecx, dword [rsp + 0x70]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*8]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*8 + 4]
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x20]
inc eax
mov eax, eax
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x28]
mov eax, dword [r8 + rax*8]
mov dword [rdx + rcx*8], eax
mov eax, dword [rsp + 0x20]
inc eax
mov eax, eax
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x28]
mov eax, dword [r8 + rax*8 + 4]
mov dword [rdx + rcx*8 + 4], eax
mov eax, dword [rsp + 0x20]
inc eax
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov edx, dword [rsp + 0x78]
mov dword [rcx + rax*8], edx
mov eax, dword [rsp + 0x20]
inc eax
mov eax, eax
mov rcx, qword [rsp + 0x28]
mov edx, dword [rsp + 0x7c]
mov dword [rcx + rax*8 + 4], edx
jmp 0x140020a64
jmp 0x140020a3e
mov eax, 1
add rsp, 0xe8
ret