Function at 0x14003cfe0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1e0], rbx
mov rax, qword [0x14007d008]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r13, r9
mov r14d, r8d
mov ebx, edx
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
test edx, edx
js 0x14003d3b9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov edx, edi
mov dword [rsp + 0x28], edx
lea r12d, [rdi + 1]
test ebx, ebx
je 0x14003d0a6
lea edx, [rbx*4 + 8]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rsi
mov r8d, r12d
lea edx, [rdi + 4]
lea rcx, [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [rsp + 0x28]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
shr edx, 8
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shl eax, 8
or edx, eax
mov dword [rsp + 0x28], edx
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rsi
mov r8, r12
mov edx, 0xc
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx edi, word [rsp + 0x5c]
rol di, 8
mov eax, dword [rsp + 0x28]
lea r15d, [rax + 0xc]
movzx ebx, r12w
cmp r12w, di
ja 0x14003d3b9
nop word [rax + rax]
movzx eax, bx
shl eax, 4
lea edx, [r15 - 0x10]
add edx, eax
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rsi
mov r8, r12
mov edx, 0x10
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [rsp + 0x48]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
shr edx, 8
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shl eax, 8
or edx, eax
cmp edx, 0x6e616d65
je 0x14003d15a
inc bx
cmp bx, di
jbe 0x14003d0f0
jmp 0x14003d3b9
cmp bx, di
ja 0x14003d3b9
mov ecx, dword [rsp + 0x50]
mov ebx, ecx
and ebx, 0xff0000
mov eax, ecx
shr eax, 0x10
or ebx, eax
shr ebx, 8
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shl eax, 8
or ebx, eax
xor r8d, r8d
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rsi
mov r8, r12
mov edx, 6
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx edi, word [rsp + 0x42]
rol di, 8
movzx eax, word [rsp + 0x44]
rol ax, 8
movzx r12d, ax
add r12d, ebx
lea r15d, [rbx + 6]
mov eax, 1
movzx ebx, ax
cmp ax, di
ja 0x14003d3b9
movzx eax, bx
lea ecx, [rax - 1]
lea ecx, [rcx + rcx*2]
lea edx, [r15 + rcx*4]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, rsi
mov edx, 0xc
lea r8d, [rdx - 0xb]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx eax, word [rsp + 0x30]
rol ax, 8
cmp ax, 3
jne 0x14003d250
movzx eax, word [rsp + 0x32]
rol ax, 8
cmp ax, 1
je 0x14003d230
cmp ax, 4
jne 0x14003d250
movzx eax, word [rsp + 0x34]
rol ax, 8
movzx eax, ax
cmp eax, r14d
jne 0x14003d250
movzx eax, word [rsp + 0x36]
rol ax, 8
cmp ax, 1
je 0x14003d25b
inc bx
cmp bx, di
jmp 0x14003d1d6
movzx r14d, word [rsp + 0x38]
rol r14w, 8
movzx eax, word [rsp + 0x3a]
rol ax, 8
movzx edx, ax
add edx, r12d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
movzx eax, word [rsp + 0x32]
rol ax, 8
cmp ax, 4
je 0x14003d323
shr r14w, 1
movzx eax, r14w
inc eax
movsxd rcx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.mfc140u.dll_operator_1]
mov r15, rax
xor eax, eax
movzx r12d, ax
cmp ax, r14w
jae 0x14003d2fe
mov rdi, r15
movzx r12d, r14w
mov r14d, r12d
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
shl bx, 8
or ax, bx
mov word [rdi], ax
lea rdi, [rdi + 2]
sub r14, 1
jne 0x14003d2d6
movzx eax, r12w
xor ecx, ecx
mov word [r15 + rax*2], cx
mov rdx, r15
mov rcx, r13
call qword [sym.imp.acdb21.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64____ptr64]
mov rcx, r15
call qword [sym.imp.mfc140u.dll_operator]
jmp 0x14003d3b5
movzx eax, r14w
inc eax
movsxd rbx, eax
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_operator_1]
mov rdi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
movzx edx, r14w
mov r9, rsi
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
xor edx, edx
mov r8d, operator
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.14003eaf0
nop
mov rdx, qword [rsp + 0x70]
mov rcx, r13
call qword [sym.imp.acdb21.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64____ptr64]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_operator]
nop
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x14003d3b5
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, 1
jmp 0x14003d3bb
xor al, al
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400489c0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret