Function at 0x140037270
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
push rsi
push rdi
sub rsp, 0xb8
mov rax, qword [0x140138010]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 0xa]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 1]
test eax, eax
je 0x140037393
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0xe0]
add eax, dword [rcx + 0x28]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x34], 0x80
jae 0x140037326
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xd8]
movzx edx, byte [rsp + 0x34]
mov byte [rcx + rax], dl
mov dword [rsp + 0x68], 1
jmp 0x14003734a
movsxd rax, dword [rsp + 0x34]
movsxd rcx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0xd8]
add rdx, rcx
mov rcx, rdx
mov rdx, rax
call fcn.1400116a0
mov dword [rsp + 0x68], eax
movzx eax, byte [rsp + 0x68]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [rcx + 8]
mov rcx, rax
call fcn.1400116a0
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
jmp 0x140037418
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 8]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
cmp dword [rsp + 0x34], 0x80
jae 0x1400373e3
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xd8]
movzx edx, byte [rsp + 0x34]
mov byte [rcx + rax], dl
mov dword [rsp + 0x6c], 1
jmp 0x140037407
movsxd rax, dword [rsp + 0x34]
movsxd rcx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0xd8]
add rdx, rcx
mov rcx, rdx
mov rdx, rax
call fcn.1400116a0
mov dword [rsp + 0x6c], eax
movzx eax, byte [rsp + 0x6c]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0xe]
cmp dword [rsp + 0x34], eax
jg 0x1400374d1
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 4
jge 0x140037473
mov dword [rsp + 0x30], 4
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x48]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0xe8]
mov ecx, dword [rsp + 0x30]
mov dword [rax], ecx
movsxd rax, dword [rsp + 0x3c]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x60]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
cdqe
mov qword [rsp + 0x88], rax
movsxd rcx, dword [rsp + 0x3c]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
mov rdi, rcx
xor eax, eax
mov rcx, qword [rsp + 0x88]
rep stosb byte [rdi], al
xor eax, eax
jmp 0x140037843
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0x10]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx + 0x48]
mov ecx, dword [rcx + 0x38]
sub ecx, 4
xor edx, edx
div ecx
mov eax, edx
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0xe]
cmp dword [rsp + 0x30], eax
jle 0x14003752b
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
lea eax, [rax + rcx + 4]
mov rcx, qword [rsp + 0xe8]
mov dword [rcx], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], 0
mov dword [rsp + 0xa0], 0
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x48]
mov qword [rsp + 0x58], rax
xor eax, eax
cmp eax, 1
je 0x140037837
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x30], eax
jle 0x1400375b7
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x3c], eax
jl 0x1400375d7
movsxd rax, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x60]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
jmp 0x14003761a
cmp dword [rsp + 0x3c], 0
jle 0x1400375fc
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x60]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
jmp 0x14003761a
movsxd rax, dword [rsp + 0x30]
mov qword [rsp + 0x90], rax
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rcx, qword [rsp + 0x90]
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jg 0x140037636
jmp 0x140037837
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x3c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x44]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140037832
mov qword [rsp + 0x98], 0
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x1400376f4
mov eax, dword [rsp + 0xa0]
inc eax
mov dword [rsp + 0xa0], eax
mov edx, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
call fcn.14002cac0
cmp eax, dword [rsp + 0xa0]
je 0x1400376af
xor edx, edx
mov eax, dword [0x14013d5b8]
mov rcx, qword [rsp + 0x58]
div dword [rcx + 0x34]
inc eax
cmp dword [rsp + 0xa0], eax
je 0x1400376af
mov byte [rsp + 0x20], 0
mov r9d, dword [rsp + 0xa0]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
call fcn.140036050
mov dword [rsp + 0xa4], eax
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x21]
test eax, eax
je 0x14003779b
cmp dword [rsp + 0xa4], 0
jne 0x14003779b
cmp dword [rsp + 0x74], 0
je 0x14003774a
mov dword [rsp + 0x70], 4
jmp 0x140037752
mov dword [rsp + 0x70], 3
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x40], al
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x74]
movzx r8d, byte [rsp + 0x40]
mov edx, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
call fcn.14002cb40
cmp dword [rsp + 0xa4], 0
je 0x14003779b
mov rcx, qword [rsp + 0x98]
call fcn.14002fd00
cmp dword [rsp + 0xa4], 0
je 0x1400377bb
mov rcx, qword [rsp + 0x78]
call fcn.14002fd00
mov eax, dword [rsp + 0xa4]
jmp 0x140037843
mov edx, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
call fcn.140011da0
mov rcx, qword [rsp + 0x78]
call fcn.14002fd00
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x80], rax
xor edx, edx
mov rcx, qword [rsp + 0x80]
call fcn.140011da0
mov eax, 1
imul rax, rax, 4
mov rcx, qword [rsp + 0x98]
add rax, qword [rcx + 0x50]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x38]
sub eax, 4
mov dword [rsp + 0x44], eax
jmp 0x140037592
mov rcx, qword [rsp + 0x78]
call fcn.14002fd00
xor eax, eax
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140124a90
add rsp, 0xb8
pop rdi
pop rsi
ret