Function at 0x140055000
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rax, qword [rbp + 0x1f0]
mov r12, qword [rbp + 0x1f8]
mov r15, qword [rbp + 0x200]
mov r13, rcx
mov qword [rsp + 0x48], r8
mov rdi, rdx
lea rcx, [rbp + 0x40]
xor edx, edx
mov r8d, 0x140
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x60], r9
mov qword [rbp - 0x50], 0
call fcn.1400e27d0
lea rdx, [rbp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rbp - 0x48], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
or rbx, 0xffffffffffffffff
mov r14, rax
mov qword [rbp - 0x60], rax
mov rsi, rbx
nop dword [rax]
inc rsi
cmp byte [rdi + rsi], 0
jne 0x1400550a0
mov rax, qword [rsp + 0x48]
lea rcx, [rbp + 0x40]
mov edx, 0x104
imul esi, dword [rax + 8]
add esi, r12d
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeA]
movaps xmm0, xmmword [rbp - 0x50]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
mov r9, r14
mov r8d, 0x20
mov dword [rsp + 0x20], esi
mov qword [rbp - 0x68], rax
call fcn.1400cf880
lea rcx, [rbp + 0x40]
xor edx, edx
mov r8d, 0x140
mov r12, rax
call fcn.1400e27d0
lea rdx, [rbp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r14, rax
mov qword [rsp + 0x58], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x50], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov r8, qword [rsp + 0x50]
lea r9, str.attachment
lea rcx, [0x1400ed7c8]
mov rdx, r14
mov qword [rbp - 0x58], rax
mov qword [rsp + 0x20], rax
call fcn.140093710
mov byte [rsp + 0x40], al
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r14, rbx
mov qword [rsp + 0x78], rax
inc r14
cmp byte [rdi + r14], 0
jne 0x140055161
movzx eax, byte [rsp + 0x58]
mov rdx, qword [rsp + 0x48]
imul byte [rsp + 0x50]
movzx ecx, al
movzx eax, byte [rbp - 0x48]
imul cl
movzx ecx, al
movzx eax, byte [rsp + 0x70]
shl cl, 5
imul byte [rsp + 0x60]
sub al, cl
sub al, byte [rdx + 0x18]
sub al, byte [rbp - 0x80]
add r14b, al
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdx, qword [rsp + 0x78]
xor r9d, r9d
movzx r8d, r14b
xor ecx, ecx
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x20], rax
call fcn.140091940
mov byte [rsp + 0x41], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, 0x58
lea r8d, [rdx - 0x56]
xor ecx, ecx
mov qword [rbp - 0x78], rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
movzx r8d, r14b
mov rcx, rbx
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x68], r8d
nop word [rax + rax]
inc rcx
cmp byte [r12 + rcx], 0
jne 0x140055200
mov eax, dword [rsp + 0x78]
movsx rdx, byte [rsp + 0x41]
mov r14, qword [rbp - 0x80]
imul eax, dword [rsp + 0x58]
sub edx, eax
mov rax, qword [rsp + 0x48]
sub edx, dword [rax + 0x28]
mov rax, rbx
sub edx, dword [rsp + 0x60]
sub edx, r8d
add edx, r14d
add edx, dword [rbp - 0x60]
add edx, esi
sub edx, ecx
nop dword [rax + rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x140055240
add edx, 0xffffffe2
xor ecx, ecx
add eax, edx
lea r8d, [rcx + 0x1a]
mov edx, 0x28d
mov dword [rbp - 0x20], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, qword [rsp + 0x58]
movsx r8, byte [rsp + 0x40]
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x18], rax
mov rcx, rbx
nop dword [rax + rax]
inc rcx
cmp byte [r15 + rcx], 0
jne 0x140055280
mov eax, dword [rsp + 0x50]
imul ecx, dword [rsp + 0x60]
imul eax, dword [rbp - 0x68]
imul ecx, esi
imul eax, edx
sub ecx, eax
mov rax, rbx
inc rax
cmp byte [rdi + rax], 0
jne 0x1400552a2
movups xmm0, xmmword [rbp - 0x20]
mov rdx, qword [rsp + 0x48]
mov r9, qword [rbp - 0x70]
imul eax, dword [rdx]
lea rdx, [0x1400ed7c8]
add ecx, eax
lea rax, [0x1400ed4d4]
movaps xmmword [rbp + 0x10], xmm0
sub ecx, r8d
mov r8, qword [rbp - 0x78]
mov qword [rbp], rax
movsd xmm0, qword [rbp]
movsd qword [rbp + 0x30], xmm0
add ecx, dword [rsp + 0x70]
lea rax, [rbp + 0x10]
mov dword [rbp - 8], ecx
mov ecx, dword [rsp + 0x44]
mov qword [rsp + 0x30], rax
movups xmm1, xmmword [rbp - 0x10]
mov qword [rsp + 0x20], r14
movaps xmmword [rbp + 0x20], xmm1
call fcn.1400d8f10
cmp byte [rsp + 0x41], 0x20
mov r14, rax
jg 0x14005533d
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor ecx, ecx
mov edx, 0x351
lea r8d, [rcx + 0x1d]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
movsx ecx, byte [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov qword [rbp - 0x40], rax
call fcn.14005f6d0
mov r8, rbx
mov r10, rax
lea rax, [0x1400ed988]
mov qword [r13], rax
inc r8
cmp byte [r14 + r8], 0
jne 0x140055365
movsx eax, byte [rsp + 0x41]
imul r8d, dword [rbp - 0x58]
mov ecx, eax
mov r9d, eax
mov eax, 3
sub eax, dword [rsp + 0x50]
imul ecx, dword [rbp - 0x70]
imul ecx, dword [rbp - 0x78]
lea edx, [rax + rax*4]
mov eax, r10d
imul ecx, dword [rsp + 0x44]
sub edx, ecx
sub edx, r8d
mov r8, qword [rbp - 0x40]
add edx, edx
imul eax, r8d
sub edx, eax
mov rax, qword [rbp - 0x60]
imul eax, esi
sub edx, eax
mov rax, rbx
nop word [rax + rax]
inc rax
cmp byte [r15 + rax], 0
jne 0x1400553c0
mov r11, qword [rbp - 0x80]
imul eax, r11d
add edx, eax
mov rax, rbx
inc rax
cmp byte [rdi + rax], 0
jne 0x1400553d7
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
imul eax, dword [rcx]
add edx, eax
mov eax, esi
imul eax, dword [rsp + 0x70]
add edx, eax
mov rax, rbx
sub edx, esi
sub edx, dword [rsp + 0x68]
sub edx, dword [rbp - 0x48]
sub edx, dword [rbp - 0x68]
sub edx, dword [rsp + 0x58]
add edx, r11d
add edx, dword [rsp + 0x78]
inc rax
cmp byte [r12 + rax], 0
jne 0x140055412
sub edx, eax
mov rax, rbx
mov dword [r13 + 8], edx
inc rax
cmp byte [rdi + rax], 0
jne 0x140055425
imul eax, dword [rcx + 0x10]
mov rdi, qword [rbp - 0x58]
imul r9d, dword [rsp + 0x44]
mov ecx, edi
imul ecx, dword [rsp + 0x50]
imul eax, esi
imul ecx, dword [rsp + 0x58]
lea ecx, [rcx + rcx*4]
add ecx, ecx
sub eax, ecx
mov ecx, r11d
imul ecx, dword [rbp - 0x70]
sub eax, ecx
mov rcx, rbx
sub eax, r9d
inc rcx
cmp byte [r15 + rcx], 0
jne 0x140055461
mov rdx, qword [rsp + 0x70]
imul ecx, esi
add eax, ecx
movsx rcx, byte [rsp + 0x40]
sub eax, dword [rsp + 0x68]
sub eax, dword [rbp - 0x68]
add eax, edx
add eax, r11d
add eax, ecx
mov rcx, rbx
add eax, r10d
add eax, r8d
add eax, dword [rbp - 0x78]
add eax, edi
add eax, dword [rbp - 0x30]
add eax, dword [rsp + 0x78]
nop
inc rcx
cmp byte [r12 + rcx], 0
jne 0x1400554a0
sub eax, ecx
nop dword [rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x1400554b0
lea ecx, [rax + 2]
lea rax, str.c1a0
mov qword [r13 + 0x18], rdx
add ecx, ebx
mov qword [r13 + 0x10], rax
mov qword [r13 + 0x20], 0
mov dword [r13 + 0xc], ecx
mov rax, r13
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400dd340
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret