Function at 0x10003bc6c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r15d, r15d
xor r14d, r14d
or qword [rax - 0x40], 0xffffffffffffffff
mov edi, r9d
mov esi, r8d
mov r12, rcx
mov rcx, qword [0x10007f250]
mov ebp, dword [rsp + 0xb8]
lea r13, [0x10007f250]
cmp rcx, r13
je 0x10003bcd8
test byte [rcx + 0x1c], 2
je 0x10003bcd8
mov rcx, qword [rcx + 0x10]
mov dword [rax - 0x60], ebp
mov dword [rax - 0x68], r9d
mov r9d, r8d
lea edx, [r15 + 0x1a]
lea r8, [0x100079b60]
call fcn.100038324
test r12, r12
je 0x10003c2a5
cmp dword [r12], 0x6060
jne 0x10003c2a5
mov ebx, 1
cmp edi, ebx
je 0x10003bd42
lea esi, [rbx + 0x7b]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x10007f250]
cmp rcx, r13
je 0x10003c2a0
test byte [rcx + 0x1c], bl
je 0x10003c26c
lea edx, [rbx + 0x1d]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079b60]
mov r9d, esi
mov dword [rsp + 0x20], edi
call fcn.1000349f4
mov rcx, qword [0x10007f250]
jmp 0x10003c26c
mov edi, 0x18
cmp ebp, edi
jae 0x10003bd7f
lea esi, [rdi + 0x62]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r11, qword [rsp + 0xc0]
mov dword [r11], edi
mov rcx, qword [0x10007f250]
cmp rcx, r13
je 0x10003c2a0
test byte [rcx + 0x1c], bl
je 0x10003c26c
lea edx, [rdi + 4]
jmp 0x10003bd1f
mov rbp, qword [rsp + 0xb0]
test rbp, rbp
jne 0x10003bdcb
lea edi, [rbp + 0x57]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x10007f250]
cmp rcx, r13
je 0x10003c2a0
test byte [rcx + 0x1c], bl
je 0x10003c26c
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x1d]
lea r8, [0x100079b60]
mov r9d, edi
call fcn.10001c0b4
jmp 0x10003bd36
or qword [rbp + 8], 0xffffffffffffffff
mov dword [rbp], ebx
mov dword [rbp + 0x10], ebx
mov rax, qword [0x10007f2f0]
cmp qword [r12 + 8], rax
jne 0x10003be6a
mov rcx, qword [0x10007f250]
cmp rcx, r13
je 0x10003be19
test byte [rcx + 0x1c], 2
je 0x10003be19
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079b60]
mov edx, 0x1f
mov r9d, esi
call fcn.10001c0b4
mov rax, qword [0x10007f2f0]
mov rcx, qword [r12 + 0x10]
mov edx, esi
call qword [rax + 0x2a8]
mov ebx, eax
mov rax, qword [0x10007f250]
cmp rax, r13
je 0x10003be63
test byte [rax + 0x1c], 2
je 0x10003be63
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10007f250]
lea r8, [0x100079b60]
mov rcx, qword [rcx + 0x10]
mov edx, 0x20
mov r9d, ebx
mov dword [rsp + 0x20], eax
call fcn.1000349f4
mov eax, ebx
jmp 0x10003c2e2
cmp qword [r12 + 0x38], 0xffffffffffffffff
jne 0x10003bea0
mov edi, 6
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x10007f250]
cmp rcx, r13
je 0x10003c2e0
test byte [rcx + 0x1c], bl
je 0x10003c2e0
lea edx, [rdi + 0x1b]
jmp 0x10003c2c9
mov edi, 0x40000
mov ecx, edi
call sym.spoolsv.exe_PrvDllAllocSplMem
mov r13, rax
test rax, rax
jne 0x10003bf02
lea edi, [rax + 8]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x10003c23c
test byte [rcx + 0x1c], bl
je 0x10003c23c
lea edx, [rdi + 0x1a]
mov dword [rsp + 0x20], 0x40000
mov r9d, edi
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079b60]
call fcn.1000349f4
jmp 0x10003c235
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x10003bf37
test byte [rcx + 0x1c], 2
je 0x10003bf37
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079b60]
mov edx, 0x23
call fcn.10001c090
mov rcx, qword [0x10007f250]
cmp esi, edi
cmovb edi, esi
test edi, edi
je 0x10003c1af
mov rcx, qword [r12 + 0x38]
and qword [rsp + 0x20], r14
lea r9, [rsp + 0x90]
mov r8d, edi
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10003c1a8
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x10003bfb8
test byte [rcx + 0x1c], 2
je 0x10003bfb8
mov eax, dword [rsp + 0x90]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079b60]
mov dword [rsp + 0x28], eax
mov edx, 0x24
mov r9d, esi
mov dword [rsp + 0x20], edi
call fcn.100038324
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
mov r8d, dword [rsp + 0x90]
test r8d, r8d
je 0x10003c17c
cmp esi, r8d
jb 0x10003c158
cmp rcx, rax
je 0x10003c017
test byte [rcx + 0x1c], 2
je 0x10003c017
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], r8d
mov r9d, esi
sub r9d, r8d
lea r8, [0x100079b60]
mov edx, 0x26
mov dword [rsp + 0x20], esi
call fcn.100038324
mov r8d, dword [rsp + 0x90]
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
sub esi, r8d
cmp rcx, rax
je 0x10003c049
test byte [rcx + 0x1c], 2
je 0x10003c049
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079b60]
mov edx, 0x28
call fcn.10001c090
mov r8d, dword [rsp + 0x90]
mov rcx, qword [0x10007f250]
xor edi, edi
test r8d, r8d
je 0x10003c0cf
mov rax, qword [r12 + 8]
mov rcx, qword [r12 + 0x10]
mov edx, edi
lea r9, [rsp + 0x40]
sub r8d, edi
add rdx, r13
call qword [rax + 0xc8]
test eax, eax
je 0x10003c10e
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x10003c0be
test byte [rcx + 0x1c], 2
je 0x10003c0be
mov eax, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
lea r8, [0x100079b60]
mov edx, 0x2a
mov dword [rsp + 0x20], edi
call fcn.100038324
mov rcx, qword [0x10007f250]
add edi, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x90]
cmp edi, r8d
jb 0x10003c050
lea rax, [0x10007f250]
cmp rcx, rax
je 0x10003c100
test byte [rcx + 0x1c], 2
je 0x10003c100
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079b60]
mov edx, 0x2b
mov r9d, edi
call fcn.10001c0b4
mov rcx, qword [0x10007f250]
mov eax, 0x40000
mov edi, eax
cmp esi, eax
jmp 0x10003bf39
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x10003c23c
test byte [rcx + 0x1c], bl
je 0x10003c23c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10007f250]
lea r8, [0x100079b60]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
mov edx, 0x29
call fcn.10001c0b4
jmp 0x10003c235
cmp rcx, rax
je 0x10003c23c
test byte [rcx + 0x1c], bl
je 0x10003c23c
mov edx, 0x27
mov dword [rsp + 0x20], r8d
mov r9d, esi
jmp 0x10003beed
cmp rcx, rax
je 0x10003c23c
test byte [rcx + 0x1c], bl
je 0x10003c23c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079b60]
mov edx, 0x25
call fcn.10001c090
jmp 0x10003c235
mov rcx, qword [0x10007f250]
lea rax, [0x10007f250]
cmp rcx, rax
je 0x10003c1d6
test byte [rcx + 0x1c], 2
je 0x10003c1d6
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079b60]
mov edx, 0x2c
call fcn.10001c090
mov rcx, r13
call sym.spoolsv.exe_PrvDllFreeSplMem
xor r13d, r13d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r14, rax
test rax, rax
je 0x10003c25e
mov r8, qword [rsp + 0x98]
mov rdx, qword [r12 + 0x38]
mov dword [rsp + 0x30], 2
lea r9, [rsp + 0x48]
mov rcx, rax
mov dword [rsp + 0x28], ebx
and dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x10003c249
mov rax, qword [rsp + 0x48]
mov dword [rbp], ebx
mov dword [rbp + 0x10], 2
mov qword [rbp + 8], rax
mov r15d, ebx
mov rcx, qword [0x10007f250]
test r13, r13
je 0x10003c250
mov rcx, r13
call sym.spoolsv.exe_PrvDllFreeSplMem
mov rcx, qword [0x10007f250]
test r14, r14
je 0x10003c265
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x10007f250]
lea r13, [0x10007f250]
cmp rcx, r13
je 0x10003c2a0
test byte [rcx + 0x1c], 2
je 0x10003c2a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x10007f250]
lea r8, [0x100079b60]
mov rcx, qword [rcx + 0x10]
mov edx, 0x2d
mov r9d, r15d
mov dword [rsp + 0x20], eax
call fcn.1000349f4
mov eax, r15d
jmp 0x10003c2e2
mov edi, 6
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [0x10007f250]
cmp rcx, r13
je 0x10003c2e0
lea ebx, [rdi - 5]
test byte [rcx + 0x1c], bl
je 0x10003c2e0
lea edx, [rdi + 0x15]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100079b60]
xor r9d, r9d
mov dword [rsp + 0x20], edi
call fcn.1000349f4
xor eax, eax
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret