Function at 0x140022100
Capabilities:
Copy file
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov r13, rdx
mov rsi, rcx
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rbx, rax
mov qword [rbp - 0x70], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
lea rcx, str.cultivar
lea r8, [0x1400ed4d4]
mov dl, 8
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rcx, rbx
mov qword [rsp + 0x68], rax
call fcn.1400b3cc0
lea rcx, str.c0a4
mov r12, rax
mov qword [rbp - 0x40], rax
call fcn.1400a2bf0
mov r15, rax
mov qword [rbp - 0x30], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdi, rax
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
or r14, 0xffffffffffffffff
mov r8, rax
mov qword [rbp - 0x60], rax
mov rcx, r14
nop word [rax + rax]
inc rcx
cmp byte [r12 + rcx], 0
jne 0x1400221b0
mov r10, qword [rbp - 0x70]
mov edx, 0xe
mov rax, r14
sub edx, r10d
sub edx, ecx
nop dword [rax + rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x1400221d0
add edx, eax
mov rax, r14
nop
inc rax
cmp byte [r13 + rax], 0
jne 0x1400221e0
add edx, eax
lea rax, str.racer
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, str.c0a2
mov dword [rsp + 0x44], edx
mov r9d, edx
mov rdx, rbx
mov qword [rsp + 0x20], rax
call fcn.1400b50f0
lea r8, [0x140001b00]
xor edx, edx
mov rdi, rax
mov qword [rbp - 0x28], rax
xor eax, eax
mov qword [rsp + 0x28], rax
lea r9d, [rax + 8]
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 8
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, r14
mov r10, rax
mov qword [rsp + 0x58], rax
nop dword [rax]
inc rcx
cmp byte [r13 + rcx], 0
jne 0x140022260
mov r9, qword [rbp - 0x70]
mov eax, edi
mov edx, r9d
imul eax, ebx
sub edx, eax
mov rax, r14
sub edx, ecx
nop
inc rax
cmp byte [r12 + rax], 0
jne 0x140022280
sub edx, eax
mov rax, r14
nop
inc rax
cmp byte [r15 + rax], 0
jne 0x140022290
sub edx, eax
mov rax, r14
nop
inc rax
cmp byte [rsi + rax], 0
jne 0x1400222a0
lea r8d, [rdx + 6]
lea ecx, [r9 + r9]
mov rdx, r14
add r8d, eax
mov dword [rsp + 0x48], r8d
nop dword [rax]
inc rdx
cmp byte [rsi + rdx], 0
jne 0x1400222c0
mov eax, dword [rsp + 0x44]
mov r9d, r8d
mov r8, r10
lea eax, [rax*4]
sub ecx, eax
mov eax, dword [rbp + 0xe0]
add ecx, dword [rsp + 0x50]
add eax, 0xfffffff7
add ecx, dword [rsp + 0x68]
add ecx, edi
add ecx, ebx
add eax, ecx
lea rcx, str.c2a4
add edx, eax
mov qword [rsp + 0x78], rdx
mov dword [rsp + 0x20], edx
mov rdx, qword [rsp + 0x70]
call fcn.1400c1590
mov edx, dword [rsp + 0x44]
mov r9d, dword [rbp + 0xe0]
mov r15, rax
mov qword [rbp - 0x50], rax
cmp edx, r9d
jbe 0x140022a58
xor ecx, ecx
mov edx, 0x179
lea r8d, [rcx + 0x1c]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r8, qword [rsp + 0x50]
mov rcx, rax
mov qword [rbp - 0x58], rax
call fcn.1400b1310
mov r12, r14
mov byte [rbp + 0xe8], al
movzx eax, al
nop dword [rax + rax]
inc r12
cmp byte [rsi + r12], 0
jne 0x140022360
shl r12d, 3
sub r12d, dword [rsp + 0x68]
sub r12d, edi
add r12d, dword [rsp + 0x58]
add r12d, dword [rbp - 0x60]
add r12d, eax
mov rax, r14
add r12d, ebx
add r12d, dword [rsp + 0x48]
nop dword [rax]
inc rax
cmp byte [r15 + rax], 0
jne 0x140022390
mov edx, 0x5b
sub r12d, eax
xor ecx, ecx
lea r8d, [rdx - 0x57]
sub r12d, 8
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov edx, 0xac
mov qword [rbp - 0x80], rax
lea rax, str.brush
lea r8d, [rcx + 0x12]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 0
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rbp], rax
mov rdx, r14
inc rdx
cmp byte [rsi + rdx], 0
jne 0x1400223e1
mov ecx, dword [rsp + 0x68]
mov eax, ebx
neg ecx
imul eax, dword [rsp + 0x44]
shl ecx, 3
sub ecx, eax
sub ecx, dword [rsp + 0x58]
sub ecx, edi
sub ecx, 5
add edx, ecx
mov qword [rbp - 0x18], rdx
mov dword [rbp + 8], edx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rbp + 0x10], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [rbp - 0x58]
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x18], rax
mov rcx, r14
nop dword [rax]
inc rcx
cmp byte [r15 + rcx], 0
jne 0x140022430
imul ecx, dword [rsp + 0x48]
mov rdx, qword [rbp - 0x40]
mov rax, r14
inc rax
cmp byte [rdx + rax], 0
jne 0x140022446
shl eax, 3
mov rdx, r14
sub eax, ecx
inc rdx
cmp byte [rsi + rdx], 0
jne 0x140022457
mov rcx, r14
inc rcx
cmp byte [r13 + rcx], 0
jne 0x140022463
imul edx, ecx
movzx ecx, byte [rbp + 0xe8]
add eax, edx
add ecx, 3
mov edx, 0x22b
sub eax, r8d
sub eax, dword [rsp + 0x50]
sub eax, dword [rbp + 0xe0]
add eax, dword [rsp + 0x70]
add eax, dword [rbp - 0x60]
add eax, ecx
xor ecx, ecx
lea r8d, [rcx + 0x19]
mov dword [rbp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, qword [rbp - 0x80]
lea r8, [rbp + 0x30]
movaps xmm0, xmmword [rbp - 0x10]
movaps xmm1, xmmword [rbp]
mov r9, rax
mov ecx, r12d
mov qword [rbp - 0x38], rax
movaps xmmword [rbp + 0x30], xmm0
movaps xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp + 0x40], xmm1
movaps xmm1, xmmword [rbp + 0x20]
movaps xmmword [rbp + 0x50], xmm0
movaps xmmword [rbp + 0x60], xmm1
call fcn.140097e10
mov ecx, 0xffff
mov qword [rbp - 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
mov ecx, eax
mov dword [rbp - 0x78], eax
call fcn.14006d0a0
xor ecx, ecx
mov edx, 0x38a
lea r8d, [rcx + 2]
mov byte [rsp + 0x40], al
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, qword [rbp - 0x68]
lea rcx, str.fortress
mov r8, rax
mov r9d, 4
mov qword [rbp - 0x48], rax
call fcn.1400a1ca0
mov rdx, r14
mov qword [rbp - 0x20], rax
inc rdx
cmp byte [rsi + rdx], 0
jne 0x140022530
mov rax, r14
nop dword [rax]
inc rax
cmp byte [r13 + rax], 0
jne 0x140022540
mov rcx, qword [rbp - 0x40]
imul edx, eax
mov rax, r14
inc rax
cmp byte [rcx + rax], 0
jne 0x140022555
mov ecx, dword [rsp + 0x70]
add edx, eax
mov eax, dword [rbp - 0x60]
imul eax, dword [rsp + 0x50]
imul ecx, dword [rsp + 0x58]
imul ecx, dword [rsp + 0x48]
sub ecx, eax
lea eax, [rcx + rdx*8]
movzx edx, byte [rbp + 0xe8]
mov rcx, qword [rsp + 0x78]
sub eax, dword [rbp - 0x38]
add ecx, 0x24
sub eax, dword [rsp + 0x68]
sub eax, dword [rsp + 0x44]
add eax, dword [rbp - 0x48]
add eax, dword [rbp - 0x80]
add eax, dword [rbp - 0x58]
add eax, edx
add eax, ecx
lea rcx, [rbp + 0x70]
mov edx, eax
mov dword [rsp + 0x60], eax
call fcn.14006f050
mov rcx, r14
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm1
inc rcx
cmp byte [r15 + rcx], 0
jne 0x1400225c3
mov eax, dword [rbp - 0x38]
mov r11d, dword [rbp - 0x78]
mov r8, qword [rsp + 0x78]
imul eax, r11d
imul ecx, r8d
mov r10d, dword [rsp + 0x60]
mov r9, qword [rbp - 0x20]
lea edx, [rax + rax*2]
mov eax, dword [rsp + 0x58]
add edx, edx
inc ecx
imul ecx, dword [rsp + 0x50]
sub edx, ecx
imul eax, dword [rsp + 0x48]
add edx, eax
mov rax, r14
sub edx, ebx
sub edx, dword [rbp + 0xe0]
add edx, r10d
add edx, dword [rsp + 0x68]
inc rax
cmp byte [r9 + rax], 0
jne 0x140022615
mov rcx, qword [rbp + 0x30]
sub edx, eax
mov rax, r14
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140022630
add edx, eax
mov rax, r14
nop
inc rax
cmp byte [rsi + rax], 0
jne 0x140022640
add eax, 4
mov rcx, r14
add eax, edx
mov dword [rbp + 8], eax
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140022654
mov rax, r14
inc rax
cmp byte [r13 + rax], 0
jne 0x140022660
imul cl
movzx ecx, al
movzx eax, byte [rbp + 0xe0]
imul cl
mov rcx, r14
movzx edx, al
nop
inc rcx
cmp byte [r15 + rcx], 0
jne 0x140022680
movzx eax, byte [rbp - 0x58]
mov r15, qword [rbp - 0x30]
imul cl
shl al, 2
add dl, al
movzx eax, byte [rbp - 0x38]
imul r11b
movzx ecx, al
movzx eax, byte [rbp + 0xe8]
imul cl
movzx ecx, al
movzx eax, bl
imul byte [rbp - 0x60]
sub cl, al
movzx eax, byte [rbp - 0x48]
add dl, cl
imul byte [rbp - 0x68]
add dl, al
mov rax, r14
sub dl, byte [rsp + 0x48]
sub dl, r10b
mov r10, qword [rbp - 0x70]
sub dl, byte [rbp - 0x24]
sub dl, byte [rsp + 0x50]
sub dl, byte [rsp + 0x68]
sub dl, r10b
sub dl, byte [rsp + 0x40]
add dl, r8b
inc rax
cmp byte [r15 + rax], 0
jne 0x1400226e5
sub dl, al
mov rax, r14
inc rax
cmp byte [r9 + rax], 0
jne 0x1400226f4
add dl, 0x12
add dl, al
mov byte [rsp + 0x4c], dl
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rcx, r14
mov qword [rbp - 0x20], rax
inc rcx
cmp byte [r15 + rcx], 0
jne 0x140022714
movzx eax, byte [rsp + 0x50]
mov r15, r14
imul cl
nop dword [rax + rax]
inc r15
cmp byte [rsi + r15], 0
jne 0x140022730
mov r11d, dword [rbp - 0x78]
mov r9d, dword [rsp + 0x60]
mov r10, qword [rbp - 0x48]
movzx edx, byte [rsp + 0x40]
add r15b, r15b
sub r15b, al
movzx eax, byte [rbp - 0x80]
shl r15b, 2
imul r12b
sub r15b, al
movzx eax, r11b
add al, al
lea ecx, [rax + r11]
mov rax, qword [rbp - 0x50]
add cl, cl
sub r15b, cl
mov rcx, qword [rsp + 0x78]
sub r15b, byte [rbp + 0x38]
sub r15b, cl
mov rcx, r14
sub r15b, r9b
sub r15b, byte [rsp + 0x58]
sub r15b, byte [rsp + 0x68]
add r15b, byte [rbp - 0x68]
add r15b, r10b
add r15b, dl
nop dword [rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400227a0
sub r15b, cl
mov rcx, qword [rbp - 0x40]
movzx r8d, dl
add r15b, 2
mov rax, r14
nop dword [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400227c0
mov edx, dword [rbp - 0x68]
lea ecx, [rax*8 + 1]
mov eax, r10d
imul eax, r9d
imul ecx, dword [rsp + 0x50]
imul edx, r8d
add ecx, eax
mov rax, qword [rbp - 0x18]
shl ecx, 2
sub edx, ecx
mov rcx, r14
imul eax, r12d
sub edx, eax
mov eax, dword [rbp - 0x24]
lea eax, [rax + rax*4]
add edx, eax
sub edx, dword [rsp + 0x48]
sub edx, dword [rbp - 0x70]
sub edx, dword [rsp + 0x44]
nop dword [rax]
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140022810
lea eax, [r11 + rdx]
add ecx, eax
movzx eax, byte [rbp + 0xe8]
add ecx, dword [rsp + 0x70]
add eax, 9
add eax, ecx
mov dword [rbp - 0x80], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
call qword [sym.imp.USER32.dll_GetActiveWindow]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
lea r8d, [rcx + 0x13]
mov edx, 0x15a
call qword [sym.imp.KERNEL32.dll_FindResourceA]
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
xor ecx, ecx
lea r8d, [rcx + 3]
mov edx, 0x15a
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, r14
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140022875
mov rax, r14
inc rax
cmp byte [r13 + rax], 0
jne 0x140022881
imul ecx, eax
mov eax, dword [rbp - 0x60]
imul ecx, dword [rbp + 0xe0]
imul eax, dword [rsp + 0x50]
imul eax, ebx
imul eax, dword [rsp + 0x44]
lea edx, [rax + rcx*2]
mov rax, qword [rsp + 0x70]
add eax, 3
lea ecx, [rax + rax*4]
movsx rax, r15b
lea r8d, [rcx + rdx*4]
add r8d, eax
mov rax, qword [rbp + 0x40]
sub r8d, dword [rbp - 0x48]
sub r8d, dword [rsp + 0x60]
sub r8d, dword [rbp - 0x58]
sub r8d, r12d
mov r12, r14
inc r12
cmp byte [rax + r12], 0
jne 0x1400228d6
mov rax, qword [rbp - 0x68]
movzx ecx, byte [rsp + 0x40]
add eax, r8d
xor r8d, r8d
add r12d, eax
add r12d, ecx
add r12d, dword [rbp - 0x78]
add r12d, dword [rsp + 0x58]
mov dword [rsp + 0x30], r12d
call fcn.1400c8e30
mov r9d, dword [rsp + 0x44]
xor eax, eax
lea r8, [0x140001b00]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x80], 0
mov rcx, r14
movsd xmm1, qword [rbp + 0x80]
movsd qword [rbp + 0x40], xmm1
mov qword [rbp + 0x70], rax
lea rax, str.world
mov qword [rbp + 0x78], rax
mov rax, qword [rbp - 0x30]
movups xmm0, xmmword [rbp + 0x70]
movaps xmmword [rbp + 0x30], xmm0
nop
inc rcx
cmp byte [rax + rcx], 0
jne 0x140022960
mov rdx, qword [rbp - 0x58]
movzx eax, dl
add al, al
add dl, al
movzx eax, byte [rsp + 0x50]
shl dl, 5
sub dl, cl
imul dl
movzx r8d, al
movzx eax, byte [rbp + 0xe8]
imul byte [rbp - 0x38]
movzx ecx, al
movzx eax, byte [rbp - 0x68]
add cl, byte [rbp + 8]
imul cl
mov ecx, dword [rbp - 0x80]
add r8b, al
movzx eax, byte [rsp + 0x4c]
imul byte [rbp - 0x20]
sub r8b, al
movzx eax, cl
add al, al
add cl, al
movzx eax, byte [rbp - 0x70]
add cl, cl
sub r8b, cl
imul byte [rsp + 0x68]
shl al, 3
add r8b, al
mov rax, r14
sub r8b, byte [rsp + 0x44]
sub r8b, byte [rsp + 0x58]
add r8b, r12b
mov r12, qword [rbp - 0x40]
add r8b, byte [rsp + 0x78]
add r8b, r15b
inc rax
cmp byte [r12 + rax], 0
jne 0x1400229e1
sub r8b, al
mov rax, r14
inc rax
cmp byte [rsi + rax], 0
jne 0x1400229f1
add r8b, 0x11
lea rdx, str.expansionism
lea rcx, [rbp + 0x30]
add r8b, al
call fcn.14007c050
movsxd r9, dword [rsp + 0x60]
xor eax, eax
mov qword [rsp + 0x28], rax
lea r8, [0x140001b00]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r9, qword [rsp + 0x50]
lea rdx, str.c7a0
lea rcx, str.c4a5
mov r8, rax
call fcn.1400af2d0
mov edx, dword [rsp + 0x44]
mov r9d, dword [rbp + 0xe0]
mov r8, qword [rsp + 0x50]
mov rcx, r14
imul r8d, ebx
mov qword [rsp + 0x50], r8
nop dword [rax]
inc rcx
cmp byte [r13 + rcx], 0
jne 0x140022a70
mov eax, dword [rsp + 0x70]
mov r10, qword [rbp - 0x70]
mov r15d, 5
imul eax, dword [rsp + 0x58]
sub r15d, eax
mov eax, r8d
shl r15d, 2
imul eax, edx
sub r15d, eax
lea eax, [r10 + r10]
sub r15d, eax
mov rax, r14
sub r15d, r9d
add r15d, dword [rsp + 0x78]
add r15d, edi
mov rdi, qword [rbp - 0x50]
sub r15d, ecx
nop word [rax + rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x140022ac0
sub r15d, eax
mov rax, r14
nop
inc rax
cmp byte [rsi + rax], 0
jne 0x140022ad0
add r15d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [rsp + 0x78]
mov rdx, rsi
mov rcx, rsi
mov dword [rbp + 0xe8], eax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
movzx r8d, byte [rbp + 0xe8]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x30], eax
mov dword [rbp - 0x80], eax
lea rax, [0x1400ee310]
lea r9, [0x1400ed4d4]
mov edx, r15d
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rax
call fcn.140070cf0
mov r8d, dword [rsp + 0x44]
mov rdx, rax
mov qword [rbp - 0x50], rax
cmp r8b, 8
jbe 0x140022bd9
xor ecx, ecx
mov edx, 0x1d8
lea r8d, [rcx + 0xd]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, r14
nop word [rax + rax]
inc rcx
cmp byte [r13 + rcx], 0
jne 0x140022b60
imul ecx, dword [rbp + 0xe0]
lea eax, [rbx + rbx*4]
imul edx, ecx, 0xfffffff0
sub edx, eax
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x140022b80
mov rbx, qword [rsp + 0x78]
imul eax, ebx
add edx, eax
movzx eax, byte [rbp + 0xe8]
sub edx, eax
mov rax, r14
sub edx, dword [rbp - 0x50]
sub edx, dword [rsp + 0x70]
sub edx, dword [rsp + 0x48]
nop word [rax + rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x140022bb0
add edx, 0xfffffffe
lea r9, str.c0a2
add eax, edx
mov dword [rsp + 0x20], eax
call fcn.1400a4980
mov rdx, qword [rbp - 0x50]
mov r8d, dword [rsp + 0x44]
jmp 0x140022bde
mov rbx, qword [rsp + 0x78]
mov rcx, r14
inc rcx
cmp byte [r12 + rcx], 0
jne 0x140022be1
mov rax, qword [rbp - 0x70]
add eax, eax
sub eax, ecx
mov rcx, qword [rbp - 0x60]
imul ecx, r8d
mov r8, qword [rbp - 0x30]
lea ecx, [rcx + rax*2]
mov rax, r14
sub ecx, dword [rbp - 0x24]
nop dword [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x140022c10
imul ebx, dword [rsp + 0x48]
add ecx, eax
movzx eax, byte [rbp + 0xe8]
dec ebx
imul ebx, dword [rsp + 0x58]
lea ecx, [rbx + rcx*4]
sub ecx, dword [rbp - 0x80]
add ecx, eax
mov rax, r14
sub ecx, r15d
sub ecx, dword [rsp + 0x50]
sub ecx, dword [rsp + 0x68]
add ecx, edx
add ecx, dword [rsp + 0x70]
add ecx, dword [rbp + 0xe0]
inc rax
cmp byte [rdi + rax], 0
jne 0x140022c51
lea edx, [rcx - 8]
add edx, eax
mov rax, r14
inc rax
cmp byte [rsi + rax], 0
jne 0x140022c62
add edx, eax
nop dword [rax]
cmp byte [r13 + r14 + 1], 0
lea r14, [r14 + 1]
jne 0x140022c70
lea eax, [r14 + rdx]
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret