Function at 0x140010010
Capabilities:
Check for time delay via gettickcount
Copy file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov rbx, r9
mov rdi, r8
movzx r15d, dl
mov byte [rsp + 0x30], dl
mov qword [rsp + 0x70], rcx
call fcn.14001e7b0
mov r14, rax
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
or rsi, 0xffffffffffffffff
mov r13d, eax
mov dword [rsp + 0x38], eax
mov rcx, rsi
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140010074
mov rax, rsi
inc rax
cmp byte [rdi + rax], 0
jne 0x140010080
imul cl
lea rdx, str.altitude
lea rcx, [0x1400ed4fc]
movzx r12d, al
lea rax, str.legal
mov r8d, r13d
sub r12b, r14b
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
add r12b, r15b
movzx r9d, r12b
call fcn.140025a70
movsx rdx, r15b
mov r15, rsi
mov dword [rsp + 0x34], eax
movzx eax, r12b
mov dword [rsp + 0x40], eax
inc r15
cmp byte [rbx + r15], 0
jne 0x1400100d6
mov ecx, eax
mov eax, edx
imul ecx, r13d
shl ecx, 3
sub eax, ecx
add r15d, eax
mov rax, rsi
inc rax
cmp byte [rbx + rax], 0
jne 0x1400100f3
mov r13d, edx
lea rcx, str.cell
mov r8d, r15d
sub r13d, dword [rsp + 0x38]
mov rdx, r14
add r13d, r14d
sub r13d, eax
mov r9d, r13d
call fcn.14001a780
mov dword [rsp + 0x3c], eax
call fcn.14004d8f0
mov qword [rsp + 0x50], rax
cmp r15d, r13d
jb 0x1400102f1
lea rdx, str.coil
mov ecx, 0x10
call fcn.140053520
lea rdx, str.legal
movzx r8d, r12b
mov qword [rsp + 0x68], rax
lea rax, str.c2a0
mov rcx, rdi
mov qword [rbp - 0x60], rax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rcx, str.altitude
mov r8d, r15d
mov rdx, rbx
mov dword [rbp - 0x58], eax
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [rbp - 0x54], eax
lea rax, str.pimple
mov qword [rbp - 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
lea r8d, [rcx + 0xa]
mov edx, 0x2a9
mov dword [rbp - 0x44], 1
mov dword [rbp - 0x48], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
lea rcx, [rbp - 0x80]
movups xmm0, xmmword [rbp - 0x60]
movups xmm1, xmmword [rbp - 0x50]
mov rdx, rax
mov qword [rsp + 0x48], rax
movaps xmmword [rbp - 0x80], xmm0
movaps xmmword [rbp - 0x70], xmm1
call fcn.140035060
mov qword [rsp + 0x58], rax
call fcn.1400376a0
movzx ecx, r12b
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
mov qword [rbp - 0x40], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
mov dword [rbp - 0x80], eax
mov qword [rbp - 0x78], 0
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp - 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r10, qword [rsp + 0x68]
movups xmm0, xmmword [rbp - 0x80]
mov qword [rbp - 0x68], r10
mov dword [rbp - 0x6c], eax
mov rdx, rsi
movaps xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rbp - 0x70]
movaps xmmword [rbp - 0x20], xmm1
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140010240
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [r14 + rax], 0
jne 0x140010250
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x48]
movzx r11d, byte [rsp + 0x30]
add dl, al
movzx eax, r8b
imul r13b
movzx ecx, al
movzx eax, r9b
imul cl
movzx ecx, al
movzx eax, byte [rsp + 0x60]
imul cl
sub al, byte [rsp + 0x38]
sub al, byte [rsp + 0x34]
sub al, 0x14
add al, r11b
add al, r12b
add dl, al
mov rax, rsi
nop dword [rax + rax]
inc rax
cmp byte [r14 + rax], 0
jne 0x1400102a0
mov ecx, dword [rsp + 0x3c]
imul r8d, r9d
imul ecx, r15d
sub ecx, r8d
movsx r8, r11b
add ecx, r8d
add ecx, r10d
add ecx, dword [rbp - 0x58]
add ecx, dword [rsp + 0x34]
sub ecx, eax
mov rax, rsi
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x1400102d0
lea r9d, [rcx + 0x12]
mov rcx, qword [rbp - 0x40]
lea r8, [rbp - 0x30]
add r9d, eax
mov byte [rsp + 0x20], dl
call fcn.14004d9c0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, str.c1a1
mov ecx, eax
mov r12d, eax
mov dword [rsp + 0x48], eax
call fcn.140053520
cmp dword [rsp + 0x40], 0
mov r14, rax
mov qword [rsp + 0x58], rax
jne 0x140010458
mov r14, rsi
inc r14
cmp byte [rdi + r14], 0
jne 0x140010322
imul r14d, dword [rsp + 0x60]
movsx r10, byte [rsp + 0x30]
mov dword [rsp + 0x6c], 8
sub r14d, dword [rsp + 0x50]
lea rcx, [0x1400ed3f4]
add r14d, r10d
add r14d, r12d
mov dword [rsp + 0x68], r14d
mov rdx, qword [rsp + 0x68]
call fcn.14005b7e0
mov r12, rax
call fcn.140052340
mov rdx, rsi
mov byte [rsp + 0x31], al
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140010370
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x140010380
mov r11d, dword [rsp + 0x38]
imul edx, eax
mov eax, dword [rsp + 0x50]
mov rcx, rsi
imul eax, r15d
imul r10d, r11d, 0xfffffff8
sub r10d, eax
sub r10d, edx
movsx rdx, byte [rsp + 0x30]
sub r10d, r14d
mov r9, rdx
add r10d, edx
inc rcx
cmp byte [r12 + rcx], 0
jne 0x1400103b5
mov r14, qword [rsp + 0x58]
movzx r8d, byte [rsp + 0x34]
mov r12d, dword [rsp + 0x3c]
add r8b, r8b
movzx eax, r14b
imul cl
sub r8b, al
movzx eax, r12b
add r8b, r8b
imul r13b
movzx ecx, al
movzx eax, byte [rsp + 0x48]
imul cl
mov rcx, rsi
add r8b, al
inc rcx
cmp byte [rdi + rcx], 0
jne 0x1400103f5
movzx eax, byte [rsp + 0x60]
sub dl, 0xa
imul cl
sub r8b, al
sub r8b, r15b
add r8b, dl
mov rdx, rsi
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140010414
mov rax, rsi
inc rax
cmp byte [rdi + rax], 0
jne 0x140010420
movsx rcx, byte [rsp + 0x31]
imul edx, eax
lea eax, [r11 + r11*4]
imul ecx, r14d
add ecx, 2
add ecx, eax
lea ecx, [rdx + rcx*2]
lea rdx, str.cirrus
sub ecx, r12d
add ecx, r9d
lea r9d, [r10 + 0xe]
call fcn.1400259c0
lea rcx, [rbp - 0x10]
xor edx, edx
mov r8d, 0x140
call fcn.1400e27d0
lea rdx, [rbp - 0x10]
lea rcx, str.legal
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, qword [rsp + 0x70]
mov edx, 0x191
mov qword [rcx], rax
xor ecx, ecx
lea r8d, [rcx + 8]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, qword [rsp + 0x70]
mov r9, qword [rsp + 0x50]
mov qword [rdx + 0x10], r14
mov r14d, dword [rsp + 0x40]
mov qword [rdx + 8], rax
mov rax, qword [rsp + 0x58]
mov r12d, r13d
imul r14d, dword [rsp + 0x38]
lea r8d, [rax*4]
mov rax, rsi
imul r12d, r15d
imul r9d, dword [rsp + 0x48]
mov qword [rsp + 0x50], r9
inc rax
cmp byte [rdi + rax], 0
jne 0x1400104d2
movsx r10, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
imul eax, r10d
lea ecx, [rax + rcx*2]
mov rax, rsi
sub ecx, r12d
sub ecx, r14d
add ecx, r8d
add ecx, r9d
add ecx, dword [rsp + 0x3c]
add ecx, dword [rsp + 0x34]
inc rax
cmp byte [rbx + rax], 0
jne 0x140010504
sub ecx, eax
inc ecx
mov dword [rdx + 0x18], ecx
xor ecx, ecx
mov edx, 0x1ea
lea r8d, [rcx + 0x13]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
mov qword [rcx + 0x20], rax
inc rdx
cmp byte [rbx + rdx], 0
jne 0x140010531
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x140010540
mov r9, qword [rsp + 0x58]
mov r10, qword [rsp + 0x60]
mov r11, qword [rsp + 0x50]
imul edx, eax
movsx rax, byte [rsp + 0x30]
mov r8, rax
imul edx, eax
lea eax, [r15 + 1]
mov r15d, dword [rsp + 0x3c]
mov ecx, r15d
imul eax, r10d
imul ecx, r13d
sub ecx, eax
lea eax, [r9*4]
add edx, ecx
sub edx, eax
mov rax, rsi
sub edx, r11d
sub edx, r14d
mov r14, qword [rsp + 0x70]
add edx, 2
mov qword [r14 + 0x30], r9
mov dword [r14 + 0x28], edx
cmp byte [rbx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1400105a2
mov ecx, dword [rsp + 0x38]
lea eax, [rax*2 + 1]
lea ecx, [rcx*8]
imul eax, r10d
sub ecx, eax
sub ecx, r12d
add ecx, r8d
add ecx, r11d
add ecx, dword [rsp + 0x40]
add ecx, r9d
add ecx, r15d
add ecx, dword [rsp + 0x34]
nop dword [rax]
inc rsi
cmp byte [rdi + rsi], 0
jne 0x1400105e0
lea eax, [rcx - 5]
xor ecx, ecx
mov edx, 0x36c
add eax, esi
lea r8d, [rcx + 0xb]
mov dword [r14 + 0x38], eax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [r14 + 0x40], rax
mov rax, r14
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1400dd340
mov rbx, qword [rsp + 0x280]
add rsp, 0x240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret