Function at 0x1400b7aa0
Capabilities:
Copy file
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
xor ecx, ecx
mov edx, 0x2c5
mov r15d, eax
lea edi, [rax + 6]
lea r8d, [rcx + 0x13]
neg r15d
mov r12, rax
add edi, r15d
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea rcx, [0x1400ed4d4]
movsxd rbx, r15d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1400ed4d4]
mov r9, rbx
mov r8, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov r13d, 4
mov edx, 0xdc
mov r8d, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov eax, r12d
imul eax, r15d
add eax, 6
mov dword [rsp + 0x6c], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8d, 0x140
mov qword [rsp + 0x80], rax
call fcn.1400e27d0
lea rdx, [rsp + 0x90]
lea rcx, [0x1400ed4d4]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [r12 + r12*2]
shl ecx, 4
mov rsi, rax
sub r13d, ecx
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov ecx, edi
mov qword [rsp + 0x88], rax
xor eax, eax
lea r8, str.rank
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], r13d
lea rdx, [0x1400ed4d4]
mov r9d, r15d
xor ecx, ecx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [sym.imp.USER32.dll_CreateWindowExA]
lea rcx, [0x1400ed4d4]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
xor ecx, ecx
mov edx, 0xe0
lea r8d, [rcx + 0x11]
mov r14d, eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, ebp
mov ebx, 2
imul ecx, r12d
imul ecx, r15d
sub ebx, ecx
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
xor ecx, ecx
mov edx, 0x2ff
lea r8d, [rcx + 0x15]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea rdx, str.farmer
mov ecx, eax
mov qword [rsp + 0x78], rax
imul ecx, ebx
imul ecx, r14d
inc ecx
lea r14d, [rcx + rcx*2]
lea rcx, [0x1400ed4d4]
add r14d, r14d
sub r14d, ebp
add r14d, dword [rsp + 0x70]
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_CopyFileA]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
lea r8d, [rcx + 0x11]
mov edx, 0x16b
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea rcx, [0x1400ed4d4]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, 0xffff
mov dword [rsp + 0x64], eax
call qword [sym.imp.KERNEL32.dll_GetMaximumProcessorCount]
mov dword [rsp + 0x60], eax
cmp edi, r14d
jb 0x1400b7cf5
xor ecx, ecx
mov edx, 0x3a8
lea r8d, [rcx + 7]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ecx, ecx
mov edx, 0x2e9
lea r8d, [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
imul ebx, dword [rsp + 0x68]
imul edi, r15d
imul esi, r13d
lea eax, [rbp*2]
add edi, edi
add eax, ebp
sub edi, ebx
sub edi, esi
add edi, eax
lea eax, [r12 - 8]
sub edi, dword [rsp + 0x60]
sub edi, dword [rsp + 0x64]
sub edi, dword [rsp + 0x6c]
add edi, dword [rsp + 0x88]
add edi, dword [rsp + 0x78]
add edi, dword [rsp + 0x70]
add edi, r14d
add edi, dword [rsp + 0x80]
add eax, edi
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400dd340
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret