Function at 0x140003bc4
Capabilities:
Acquire debug privileges
Check for time delay via gettickcount
Get common file path
Query environment variable
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
mov edx, 2
mov rdi, rcx
lea rcx, [0x1400f9560]
lea r8d, [rdx + 2]
call fcn.14001a1f0
mov eax, dword [rsp + 0x1c0]
mov r13d, 0x80
mov ecx, eax
mov r14d, eax
mov edx, eax
and ecx, 8
mov ebx, eax
mov ebp, eax
mov dword [rsp + 0x64], ecx
mov ecx, eax
and edx, 0x20
and ecx, 0x18
and ebp, 0x100
xor esi, esi
mov dword [rsp + 0xa8], ecx
mov ecx, eax
and eax, 0x200
and ecx, 0x40
mov dword [rsp + 0x1c0], eax
mov rax, qword [rsp + 0x1b0]
and r14d, 4
and ebx, r13d
mov dword [rsp + 0xcc], edx
mov dword [rsp + 0x74], ecx
mov dword [rsp + 0x70], ebp
lea r8d, [r13 - 0x7f]
cmp rax, rsi
je 0x140003c74
bt dword [rax + 0x3c], 0x1b
cmovb r14d, r8d
cmp edx, esi
cmovne r14d, esi
cmp rax, rsi
je 0x140003c8e
test byte [rax + 0x3c], r8b
je 0x140003c8e
mov ecx, r8d
cmp word [rax + 0x40], si
je 0x140003c90
mov ecx, esi
cmp rax, rsi
je 0x140003ca3
test byte [rax + 0x3c], r8b
je 0x140003ca3
cmp word [rax + 0x40], si
cmove r14d, r8d
cmp ecx, esi
lea rdx, [0x1400f97e0]
lea rax, [0x1400f9548]
cmovne rax, rdx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0xa0], rax
call fcn.14005a150
cmp rdi, rsi
je 0x140003cfd
lea rdx, [0x1400f97c8]
lea rcx, [rsp + 0x68]
call fcn.140064e2c
lea rcx, [rsp + 0x68]
mov rdx, rdi
call fcn.14005a28c
lea rdx, [0x1400f97c4]
lea rcx, [rsp + 0x68]
call fcn.14005a28c
cmp ebx, esi
je 0x140003d0c
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov r15, rax
jmp 0x140003d0f
mov r15, rsi
mov qword [rsp + 0xb0], r15
mov r12, r15
cmp r15, rsi
je 0x140003d3f
cmp word [r15], si
je 0x140003d3b
add r12, 2
cmp word [r12], si
jne 0x140003d25
add r12, 2
cmp word [r12], si
jne 0x140003d25
add r12, 2
lea rcx, [rsp + 0x40]
sub r12, r15
call fcn.14005a150
or rax, 0xffffffffffffffff
lea rdx, [0x1400f9798]
lea rcx, [rsp + 0x40]
mov r9, rax
mov r8, rax
call fcn.14005a30c
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea rcx, [rsp + 0x40]
mov edx, 0xa000
mov dword [rsp + 0x7c], eax
call fcn.14005a250
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
lea rcx, [rsp + 0x58]
mov dword [rsp + 0xb8], eax
call fcn.14005a150
mov byte [rsp + 0x48], sil
mov dword [rsp + 0xe8], esi
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edx, edx
lea rcx, [rsp + 0x109]
lea r8d, [rdx + 0x27]
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x80], rsi
mov dword [rsp + 0xc8], eax
mov rdi, rsi
mov ebx, esi
mov byte [rsp + 0x108], sil
call fcn.1400dd9e0
lea rax, [rsp + 0x108]
lea rcx, [rsp + 0xf8]
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0xf0], 0x18
mov dword [rsp + 0x100], esi
call fcn.1400553dc
movsxd rbp, ebp
mov qword [rsp + 0x50], rbp
jmp 0x140003e22
mov ebx, dword [rsp + 0x4c]
inc ebx
mov dword [rsp + 0x4c], ebx
test bl, 1
je 0x140003e6a
movsxd rax, dword [rsp + 0x7c]
mov rcx, qword [rsp + 0x40]
lea rdx, [0x1400f9770]
lea rbp, [rax + rax]
mov dword [rsp + 0x60], 1
add rcx, rbp
mov qword [rsp + 0xd8], rbp
call qword [sym.imp.USER32.DLL_wsprintfW]
mov ebx, 0x100000
mov qword [rsp + 0xe0], rbx
jmp 0x140003ec8
mov rbx, qword [rsp + 0x40]
lea rax, [r12 + 0x210]
mov dword [rsp + 0x60], esi
mov qword [rsp + 0xe0], rax
movsxd rax, dword [rsp + 0x7c]
lea rbp, [rax + rax]
mov qword [rsp + 0xd8], rbp
add rbx, rbp
call fcn.140054c4c
mov r9d, dword [rsp + 0xb8]
lea r8, [0x1400f9758]
lea rdx, [0x1400f9730]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.DLL_wsprintfW]
lea rbx, [r12 + 0x210]
cmp qword [rsp + 0x50], rsi
jne 0x140003edd
mov byte [rsp + 0x1b0], sil
cmp dword [rsp + 0x60], esi
je 0x140003ee5
mov byte [rsp + 0x1b0], 1
or rax, 0xffffffffffffffff
lea rdx, [0x1400f9718]
lea rcx, [rsp + 0x58]
mov r9, rax
mov r8, rax
call fcn.14005a30c
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
add rdx, rbp
mov dword [rsp + 0xd0], eax
call fcn.14005a28c
add ebx, 0x88
mov dword [rsp + 0x78], ebx
mov r8, qword [rsp + 0x58]
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
mov rbp, rax
mov qword [rsp + 0xc0], rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp rbp, rsi
jne 0x140003fa3
cmp qword [rsp + 0x50], rsi
jne 0x140003fb1
movsxd rcx, dword [rsp + 0x60]
cmp rcx, rsi
je 0x140003fb1
mov rbp, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [rsp + 0xc8]
cmp eax, 0x7530
jae 0x140004666
xor r9d, r9d
lea rcx, [0x140117fa0]
xor r8d, r8d
lea edx, [r9 + 5]
call fcn.14001d848
cmp rbp, rsi
je 0x140003e1e
jmp 0x140003f2e
cmp byte [rsp + 0x1b0], sil
je 0x140004178
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetLastError]
cmp byte [rsp + 0x1b0], sil
je 0x1400040c8
mov rax, qword [rsp + 0x88]
cmp rax, rsi
jne 0x14000404a
lea rdx, [0x1400f9700]
lea rcx, [rsp + 0x98]
or r8, 0xffffffffffffffff
call fcn.140064d54
mov r11, qword [rsp + 0x40]
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x98]
add rdx, r11
call fcn.14005a28c
mov r8, qword [rsp + 0x98]
lea rcx, [rsp + 0xf0]
mov edx, 1
call qword [sym.imp.KERNEL32.DLL_CreateMutexW]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x88], rax
call fcn.140052160
mov rax, qword [rsp + 0x88]
cmp rax, rsi
je 0x140003f65
cmp qword [rsp + 0x80], rsi
jne 0x1400040c8
lea rdx, [0x1400f96e8]
lea rcx, [rsp + 0x90]
or r8, 0xffffffffffffffff
call fcn.140064d54
mov r11, qword [rsp + 0x40]
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x90]
add rdx, r11
call fcn.14005a28c
mov r9, qword [rsp + 0x90]
lea rcx, [rsp + 0xf0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_CreateEventW]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x80], rax
cmp rax, rsi
jne 0x1400040c3
call fcn.140052160
jmp 0x140003f65
call fcn.140052160
cmp rbp, rsi
jne 0x14000414b
mov rax, qword [rsp + 0x58]
xor r9d, r9d
lea rdx, [rsp + 0xf0]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 4]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov rbp, rax
mov qword [rsp + 0xc0], rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp rbp, rsi
jne 0x14000413d
mov rbp, qword [rsp + 0x50]
cmp rbp, rsi
je 0x140004122
cmp eax, 5
je 0x140004679
jmp 0x140003f6a
xor r9d, r9d
lea rcx, [0x140117fa0]
xor r8d, r8d
lea edx, [r9 + 5]
call fcn.14001d848
jmp 0x140003e1e
cmp qword [rsp + 0x50], rsi
jne 0x14000414b
cmp eax, 0xb7
je 0x140004178
xor r9d, r9d
movsxd rax, ebx
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov rbp, rax
cmp rax, rsi
jne 0x140004186
mov rcx, qword [rsp + 0xc0]
jmp 0x14000417b
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x140003e1e
mov r8, r13
xor edx, edx
mov rcx, rax
call fcn.1400dd9e0
cmp byte [rsp + 0x1b0], sil
je 0x14000423a
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov rcx, qword [rsp + 0x178]
mov ebx, eax
add ebx, ebx
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea r15d, [rax + rax + 2]
lea eax, [r15 + rbx]
movsxd r13, eax
mov rax, qword [rsp + 0xe0]
cmp r13, rax
cmovg r13, rax
cmp dword [rsp + 0x64], esi
je 0x1400041ed
cmp dword [rsp + 0x70], esi
jne 0x1400041ed
or qword [rbp + 0x28], 1
mov rdx, qword [rsp + 0xa0]
movsxd rbx, ebx
lea rcx, [rbp + 0x80]
lea r8, [rbx + 2]
call fcn.14001b7a8
mov rdx, qword [rsp + 0x178]
lea rcx, [rbx + rbp + 0x80]
movsxd r8, r15d
call fcn.14001b7a8
mov r15, qword [rsp + 0xb0]
mov ebx, dword [rsp + 0x78]
mov dword [rbp + 0x18], r13d
mov word [r13 + rbp + 0x7e], si
sub r13, 0xffffffffffffff80
cmp dword [rsp + 0x1c0], esi
je 0x1400042b9
lea rcx, [rsp + 0x50]
mov edx, 0x20a
call fcn.14005a1c4
mov rax, qword [rsp + 0x50]
mov ecx, 0x208
mov word [rax], si
mov rdx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov rcx, qword [rsp + 0x50]
sub ebx, r13d
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
movsxd rcx, eax
movsxd rax, ebx
lea rdi, [rcx + rcx + 2]
cmp rdi, rax
cmovg rdi, rax
cmp rdi, rsi
jle 0x1400042af
mov rdx, qword [rsp + 0x50]
lea rbx, [r13 + rbp]
mov r8, rdi
mov rcx, rbx
call fcn.14001b7a8
mov dword [rbp + 0x1c], edi
mov word [rbx + rdi - 2], si
add r13, rdi
lea rcx, [rsp + 0x50]
call fcn.140052160
mov ebx, dword [rsp + 0x78]
mov eax, ebx
sub eax, r13d
movsxd rcx, eax
cmp r12, rcx
cmovg r12, rcx
cmp r15, rsi
je 0x1400042f3
cmp r12, 4
jbe 0x1400042f3
lea rcx, [r13 + rbp]
mov r8, r12
mov rdx, r15
call fcn.14001b7a8
add r13, r12
mov dword [r13 + rbp - 4], esi
mov dword [rbp + 0x20], r12d
mov r12, qword [rsp + 0x170]
cmp r12, rsi
je 0x140004338
mov rcx, r12
sub ebx, r13d
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea edi, [rax + rax + 2]
cmp edi, ebx
cmovg edi, ebx
cmp edi, esi
jle 0x140004338
movsxd rbx, edi
lea rcx, [r13 + rbp]
mov rdx, r12
mov r8, rbx
call fcn.14001b7a8
add r13, rbx
mov dword [rbp + 0x24], edi
mov word [r13 + rbp - 2], si
mov eax, 0x10
mov qword [r13 + rbp + 8], rsi
mov dword [r13 + rbp], eax
mov dword [r13 + rbp + 4], eax
mov dword [rbp + 0x30], eax
mov qword [rbp], 0xffffffffffffffff
cmp byte [rsp + 0x1b0], sil
je 0x140004377
mov rax, qword [rsp + 0x80]
cmp rax, rsi
je 0x140004377
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
movsxd r15, dword [rsp + 0xd0]
mov edi, dword [rsp + 0x70]
mov ebx, dword [rsp + 0x60]
movsxd r11, eax
mov rax, qword [rsp + 0x58]
lea rdx, [rax + r15*2]
lea r8, [0x1400f9548]
lea rax, [0x1400f96d8]
mov r9, r8
cmp edi, esi
cmovne r9, rax
lea rax, [0x1400f96c8]
cmp ebx, esi
cmovne r8, rax
mov rax, qword [rsp + 0x40]
lea rcx, [rax + r11*2]
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rdx, [0x1400f9688]
call qword [sym.imp.USER32.DLL_wsprintfW]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rsi
lea r12, [0x140117fa0]
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x4c]
mov r8, r12
mov rcx, r12
mov qword [rsp + 0x28], rsi
mov word [rsp + 0x4c], si
mov dword [rsp + 0x20], esi
call fcn.14000d03c
mov byte [rsp + 0x48], 1
mov qword [rsp + 0xe8], rax
cmp ebx, esi
jne 0x14000444f
cmp edi, esi
jne 0x14000444f
mov r13d, esi
jmp 0x14000447d
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
lea rdx, [0x1400f9670]
lea r8, [rax + r15*2]
mov r13d, 1
call qword [sym.imp.USER32.DLL_wsprintfW]
mov rdx, qword [rsp + 0x40]
mov rcx, r12
call fcn.14001dcc8
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ebx, eax
jmp 0x1400044ac
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
jae 0x1400044b6
xor r9d, r9d
lea rcx, [0x140117fa0]
xor r8d, r8d
lea edx, [r9 + 1]
call fcn.14001d848
mov r12, qword [rbp]
cmp r12, 0xffffffffffffffff
je 0x140004487
mov rcx, qword [rsp + 0xb0]
cmp rcx, rsi
je 0x1400044c9
call qword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov rdi, qword [rbp + 0x10]
mov rbp, qword [rbp + 8]
cmp rdi, rsi
jle 0x14000457c
mov r8d, edi
xor edx, edx
mov ecx, 0x100400
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp rbx, rsi
jne 0x14000450b
mov r8d, edi
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [rsp + 0x64], esi
je 0x14000452a
mov rax, qword [rsp + 0x1b8]
cmp rax, rsi
je 0x14000452a
mov dword [rax + 0x10], edi
mov qword [rax], rbx
mov eax, dword [rsp + 0x74]
cmp eax, esi
jne 0x140004540
cmp r14d, esi
je 0x140004540
cmp dword [rsp + 0xcc], esi
je 0x140004556
mov edx, 0x1388
mov rcx, rbx
call qword [sym.imp.USER32.DLL_WaitForInputIdle]
mov eax, dword [rsp + 0x74]
cmp eax, esi
jne 0x14000455b
cmp r14d, esi
jne 0x14000457c
or eax, dword [rsp + 0xa8]
mov rcx, rdi
neg eax
sbb rdx, rdx
and edx, 0x1220
add rdx, 0x168
call fcn.140003ae0
mov ebx, dword [rsp + 0x64]
lea r14, [0x1400f9660]
cmp ebx, esi
jne 0x1400045b2
cmp rdi, rsi
jle 0x1400045b2
mov rcx, qword [rsp + 0x40]
mov r8d, edi
mov rdx, r14
call qword [sym.imp.USER32.DLL_wsprintfW]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x140117fa0]
call fcn.140034990
cmp r13d, esi
jne 0x1400045de
cmp r12d, esi
jle 0x1400045de
mov rcx, qword [rsp + 0x40]
mov r8d, ebp
mov rdx, r14
call qword [sym.imp.USER32.DLL_wsprintfW]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x140117fa0]
call fcn.1400219cc
cmp ebx, esi
jne 0x140004609
cmp rdi, rsi
jle 0x140004609
mov rcx, qword [rsp + 0x40]
mov r8d, edi
mov rdx, r14
call qword [sym.imp.USER32.DLL_wsprintfW]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x140117fa0]
call fcn.1400219cc
cmp r13d, esi
jne 0x140004666
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
lea rdx, [0x1400f9648]
lea r8, [rax + r15*2]
call qword [sym.imp.USER32.DLL_wsprintfW]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x140117fa0]
call fcn.14001dcc8
mov r11, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
lea r8, [r11 + r15*2]
lea rdx, [0x1400f9630]
call qword [sym.imp.USER32.DLL_wsprintfW]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x140117fa0]
call fcn.14001dcc8
mov rcx, qword [rsp + 0xc0]
cmp rcx, rsi
je 0x140004679
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rax, qword [rsp + 0x80]
cmp rax, rsi
je 0x14000468f
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x88]
cmp rbx, rsi
je 0x1400046ae
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp rdi, rsi
jg 0x1400046c7
cmp byte [rsp + 0x48], sil
je 0x1400046c7
mov ecx, dword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
lea rcx, [rsp + 0x58]
call fcn.140052160
lea rcx, [rsp + 0x40]
call fcn.140052160
lea rcx, [rsp + 0x68]
call fcn.140052160
mov rbx, qword [rsp + 0x180]
cmp rdi, rsi
setg sil
mov eax, esi
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret