Function at 0x140093d20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x4870
call sub.ntdll.dll___chkstk
sub rsp, rax
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x48c8], rbx
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x4860], rax
mov r14, r8
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x250], rcx
xor r15d, r15d
mov dword [rsp + 0x58], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov word [rsp + Ordinal_2149], r15w
xor edx, edx
mov r8d, 0x3ffe
lea rcx, [rsp + 0x862]
call sub.ntdll.dll_memset
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r15
movabs r13, 0x7878787878787879
movzx ebx, byte [rsp + 0x50]
jmp 0x140093dd0
movabs r13, 0x7878787878787879
mov rax, qword [rsp + 0x250]
mov r12, qword [rax]
xor edx, edx
mov r8d, 0x2000
lea rcx, [rsp + 0x860]
call sub.ntdll.dll_memset
lea rdi, [rsp + 0x860]
mov esi, r15d
mov rbp, r15
nop
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x58]
mov r8d, 2
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140093efe
cmp dword [rsp + 0x58], 0
je 0x140093efe
add esi, 1
add rbp, 1
movzx eax, word [rdi]
add rdi, 2
cmp ax, 0xa
je 0x140093e50
cmp esi, 0x1000
jb 0x140093e00
mov word [rdi], 0
cmp byte [rsp + 0x860], 0xff
jne 0x140093eb2
cmp byte [rsp + 0x861], 0xfe
jne 0x140093eb2
mov rax, r15
lea rdx, [rsp + 0x862]
movzx ecx, word [rsp + 0x862]
test cx, cx
je 0x140093ea8
nop
nop
nop
nop
mov word [rsp + rax*2 + Ordinal_2149], cx
add rax, 1
add rdx, 2
mov cx, word [rdx]
test cx, cx
jne 0x140093e90
mov word [rsp + rax*2 + Ordinal_2149], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x860]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp ecx, 2
jl 0x140093f06
movsxd rax, ecx
cmp word [rsp + rax*2 + 0x85c], 0xd
jne 0x140093f06
cmp word [rsp + rax*2 + 0x85e], 0xa
jne 0x140093f06
mov word [rsp + rax*2 + Ordinal_2149], 0
mov word [rsp + rax*2 + Ordinal_2149], 0
jmp 0x140093f06
mov word [rdi + rbp*2], 0
mov ecx, esi
test ecx, ecx
je 0x1400945aa
mov r8d, 0xa
lea rdx, [0x1402e82a8]
lea rcx, [rsp + 0x860]
call qword [sym.imp.ntdll.dll_wcsncmp]
test eax, eax
jne 0x140093dd0
xor edx, edx
mov r8d, 0x88
lea rcx, [rsp + 0xa0]
call sub.ntdll.dll_memset
mov dword [rsp + 0xa0], 0xffffffff
mov dword [rsp + 0xa4], 0xffffffff
xor edx, edx
mov r8d, 0x84
lea rcx, [rsp + 0x130]
call sub.ntdll.dll_memset
mov dword [rsp + 0x130], 0xffffffff
lea rdi, [rsp + 0x860]
lea rdx, [0x1402e82dc]
lea rcx, [rsp + 0x860]
call qword [sym.imp.ntdll.dll_wcsstr]
mov rbp, rax
test rax, rax
je 0x140094131
nop
nop
nop
mov word [rsp + 0x260], 0
xor edx, edx
mov r8d, Ordinal_512
lea rcx, [rsp + 0x262]
call sub.ntdll.dll_memset
mov r8, rbp
sub r8, rdi
sar r8, 1
add r8, r8
mov rdx, rdi
lea rcx, [rsp + 0x260]
call sub.ntdll.dll_memcpy
mov word [rsp + Ordinal_1635], 0
xor edx, edx
mov r8d, Ordinal_512
lea rcx, [rsp + 0x662]
call sub.ntdll.dll_memset
mov word [rsp + 0x460], 0
xor edx, edx
mov r8d, Ordinal_512
lea rcx, [rsp + 0x462]
call sub.ntdll.dll_memset
lea rdx, [0x1402e0f14]
lea rcx, [rsp + 0x260]
call qword [sym.imp.ntdll.dll_wcsstr]
mov rdi, rax
test rax, rax
je 0x14009441b
lea rax, [rsp + 0x260]
mov r8, rdi
sub r8, rax
sar r8, 1
add r8, r8
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x660]
call sub.ntdll.dll_memcpy
lea rdx, [rdi + 2]
lea rcx, [rsp + 0x460]
sub rcx, rdx
nop
nop
nop
nop
movzx eax, word [rdx]
mov word [rcx + rdx], ax
add rdx, 2
test ax, ax
jne 0x140094090
lea rsi, [rsp + 0x660]
lea rdi, str.DiskIndex
mov ecx, 0xa
repe cmpsw word [rsi], word [rdi]
jne 0x1400940d0
lea rcx, [rsp + 0x460]
call qword [sym.imp.ntdll.dll__wtoi]
mov dword [rsp + 0x130], eax
jmp 0x1400940e9
lea rsi, [rsp + 0x660]
lea rdi, str.DiskSign
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
je 0x14009410b
lea rdi, [rbp + 2]
lea rdx, [0x1402e82dc]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_wcsstr]
mov rbp, rax
test rax, rax
jne 0x140093fb0
jmp 0x140094131
mov r8d, 0x40
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x134]
call qword [sym.imp.ntdll.dll_wcsncpy]
mov word [rsp + 0x1b2], 0
mov rdi, r15
mov rcx, r14
call fcn.140001b80
test rax, rax
je 0x140093dd0
mov rsi, r15
nop
nop
mov rax, qword [r14 + 8]
test rax, rax
je 0x140094180
mov rcx, qword [r14 + 0x10]
sub rcx, rax
movabs rax, 0xf83e0f83e0f83e1
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jb 0x140094186
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rax, qword [r14 + 8]
lea rcx, [rsp + 0x1c0]
lea rdx, [rsi + rax]
mov r8d, 0x84
call sub.ntdll.dll_memcpy
mov r8d, 0x80
lea rdx, [rsp + 0x134]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_452]
call sub.ntdll.dll_memcmp
test eax, eax
je 0x1400941e1
add rdi, 1
add rsi, 0x84
mov rcx, r14
call fcn.140001b80
cmp rdi, rax
jb 0x140094150
jmp 0x140093dd0
mov eax, dword [rsp + 0x130]
mov dword [rsp + 0xa4], eax
mov r13d, dword [rsp + 0x1c0]
mov dword [rsp + 0xa0], r13d
lea rcx, [rsp + 0xa8]
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_452]
mov r8d, 0x80
call sub.ntdll.dll_memcpy
mov rdi, r15
lea rcx, [rsp + 0x30]
call fcn.140091510
test rax, rax
je 0x1400942a1
mov r12, r15
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
nop
nop
test rsi, rsi
je 0x14009426b
mov rcx, rbp
sub rcx, rsi
movabs rax, 0x7878787878787879
imul rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jb 0x14009427b
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
cmp dword [r12 + rsi], r13d
je 0x140093dc6
add rdi, 1
add r12, 0x88
lea rcx, [rsp + 0x30]
call fcn.140091510
cmp rdi, rax
jb 0x140094240
jmp 0x1400942ab
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x14009432b
mov rcx, rbp
sub rcx, rsi
movabs r13, 0x7878787878787879
mov rax, r13
imul rcx
mov rdi, rdx
sar rdi, 6
mov rax, rdi
shr rax, 0x3f
add rdi, rax
mov rcx, qword [rsp + 0x48]
sub rcx, rsi
mov rax, r13
imul rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdi, rdx
jae 0x140094335
xor eax, eax
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x30]
lea r8, [rsp + 0xa0]
lea edx, [rax + 1]
mov rcx, rbp
call fcn.140091dc0
lea rdx, [rbp + 0x88]
mov qword [rsp + 0x40], rdx
jmp 0x140093dd0
movabs r13, 0x7878787878787879
mov rdi, rbp
cmp rsi, rbp
jbe 0x14009434d
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdi
test rsi, rsi
je 0x1400943a4
mov rcx, rbp
sub rcx, rsi
mov rax, r13
imul rcx
sar rdx, 6
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1400943a4
cmp rsi, rbp
jbe 0x140094388
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
sub rdi, rsi
mov rax, r13
imul rdi
mov rdi, rdx
sar rdi, 6
mov rax, rdi
shr rax, 0x3f
add rdi, rax
jmp 0x1400943a7
mov rdi, r15
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x90], xmm0
lea r9, [rsp + 0xa0]
mov r8d, 1
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140092530
mov rdx, qword [rsp + 0x38]
mov rsi, rdx
mov rax, qword [rsp + 0x40]
cmp rdx, rax
jbe 0x1400943f7
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
imul rdi, rdi, 0x88
lea rcx, [rdi + rsi]
cmp rcx, rax
ja 0x140094410
cmp rcx, rdx
jae 0x140093dd0
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
jmp 0x140093dd0
call fcn.140049470
mov rsi, rax
xor edx, edx
mov r8d, 0x80
lea rbx, [0x140434050]
mov rcx, rbx
call sub.ntdll.dll_memset
mov edx, 0x5c
lea rcx, str...configmgr.cpp
call qword [sym.imp.ntdll.dll_strrchr]
mov rdi, rax
test rax, rax
je 0x1400944e3
mov byte [rsp + 0x250], 0
xor eax, eax
mov qword [rsp + 0x251], rax
mov word [rsp + 0x259], ax
mov byte [rsp + 0x25b], al
mov r8d, Ordinal_1040
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x250]
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
add rdx, 1
test al, al
jne 0x1400944a0
mov rdi, rbx
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x250]
xor ecx, ecx
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
add rcx, 1
test al, al
jne 0x1400944d0
mov r15, rbx
mov rax, qword [rsi]
mov r8, r15
lea rdx, str._s:_Failed_to__tcsstr_.
mov rcx, rsi
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x40]
mov rdi, rbx
mov rsi, qword [rsp + 0x38]
cmp rsi, rbx
jbe 0x140094518
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
cmp rsi, rbx
jbe 0x140094528
call qword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov rbx, qword [rsp + 0x40]
cmp rsi, rdi
je 0x140094583
mov rcx, rbx
sub rcx, rdi
mov rax, r13
imul rcx
mov rbp, rdx
sar rbp, 6
mov rax, rbp
shr rax, 0x3f
add rbp, rax
imul rbp, rbp, 0x88
add rbp, rsi
cmp rdi, rbx
je 0x14009457e
sub rsi, rdi
nop
lea rcx, [rsi + rdi]
mov rdx, rdi
mov r8d, 0x88
call sub.ntdll.dll_memcpy
add rdi, 0x88
cmp rdi, rbx
jne 0x140094560
mov qword [rsp + 0x40], rbp
lea rdx, [rsp + 0x30]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140091f50
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400945a5
call sub.MFC80U.DLL_Ordinal_776
mov rax, rdi
jmp 0x1400945cf
lea rdx, [rsp + 0x30]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.140091f50
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400945cc
call sub.MFC80U.DLL_Ordinal_776
mov rax, rdi
mov rcx, qword [rsp + 0x4860]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x48c8]
add rsp, 0x4870
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret