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

Disassembly:
push rsi
sub rsp, 0x140
lea rax, [0x00443ae1]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x14]
call fcn.004068b1
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0x48]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x44]
call fcn.00406a11
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.kernel32.dll_LocalAlloc]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0x48]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0xc]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x44]
call fcn.00406a11
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
mov r8d, 0x104
call rax
mov dword [rsp + 0xac], eax
lodsb al, byte [rsi]
add byte [rax], al
add byte [rax - 0x75], cl
and al, 0x40
mov rax, qword [rax + 0x3c]
mov qword [rsp + 0xd0], rax
mov eax, dword [rsp + 0xac]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x50]
sub ecx, 1
mov ecx, ecx
movzx eax, word [rax + rcx*2]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x4c]
movzx ecx, cx
cmp eax, ecx
je 0x406c3d
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x50]
mov word [rax + rcx*2], 0
mov eax, dword [rsp + 0x50]
add eax, 0xffffffff
mov dword [rsp + 0x50], eax
jmp 0x406c00
mov dword [rsp + 0x64], 0
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0x64]
movsx eax, byte fs:[rax + rcx]
cmp eax, 0
je 0x406c8f
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0x64]
movsx eax, byte [rax + rcx]
mov rcx, qword [rsp + 0x78]
mov edx, dword [rsp + 0x50]
mov word [rcx + rdx*2], ax
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x64]
add eax, 1
mov dword [rsp + 0x64], eax
jmp 0x406c45
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0x48]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x1c]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x44]
call fcn.00406a11
mov qword [rsp + 0x118], rax
mov r10, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x40]
mov esi, dword [rcx + 0x34]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + 0x24]
mov rcx, qword [rsp + 0x40]
mov edx, dword [rcx + 0x38]
mov rcx, qword [rsp + 0x78]
mov r8d, 1
xor r9d, r9d
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
call r10
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0x48]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x20]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x44]
call fcn.00406a11
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xc8]
xor edx, edx
call rax
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x84]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x44]
cmp eax, ecx
jne 0x406d7d
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rax
jmp 0x407179
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0x48]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x58]
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x44]
call fcn.00406a11
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x80], 0
mov rax, qword [rsp + 0x108]
mov r8d, dword [rsp + 0x84]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], 0
call rax
cmp eax, 0
jne 0x406e11
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rax
jmp 0x407179
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x80]
add rax, rcx
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, eax
add rcx, rax
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0xa8], eax
mov rax, qword [rsp + 0x58]
add rax, 4
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0xa4], eax
mov rax, qword [rsp + 0x58]
add rax, 4
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x74], 0
mov eax, dword [rsp + 0x74]
cmp eax, dword [rsp + 0xa8]
test al, 0
add byte [rax], al
jae 0x406ec1
mov eax, dword [rsp + 0xa4]
mov rcx, qword [rsp + 0x58]
add eax, dword [rcx]
mov dword [rcx], eax
mov eax, dword [rsp + 0x74]
add eax, 1
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0x58]
add rax, 4
mov qword [rsp + 0x58], rax
jmp 0x406e89
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x5c]
mov rcx, qword [rsp + 0x48]
mov eax, eax
add rcx, rax
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x40]
mov esi, dword [rax + 0x48]
mov rdx, qword [rsp + 0x48]
add rdx, 1
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x48]
call fcn.004069a1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x44]
mov r8d, eax
mov r9d, esi
call fcn.00406a11
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
mov rcx, qword [rsp + 0x48]
cdqe
add rcx, rax
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x40]
mov esi, dword [rax + 0x48]
mov rdx, qword [rsp + 0x48]
add rdx, 1
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x48]
call fcn.004069a1
mov rdx, qword [rsp + 0x68]