Function at 0x140041a80
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x220], rbx
mov rax, qword [0x14007e020]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov r13d, r9d
mov rsi, r8
mov rbx, rdx
mov qword [rsp + 0x20], 0
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x40]
test al, al
jne 0x140041fbf
mov rdx, rbx
lea rcx, [rbp - 0x40]
call qword [sym.imp.acdb19.dll_public:_void___cdecl_AdXREFString::constructor_class_AdXREFString_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x40]
call fcn.1400418a0
test al, al
jne 0x140041afc
jmp 0x140041fb5
lea rcx, [rbp - 0x40]
call qword [sym.imp.acdb19.dll_public:_wchar_t_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64_void_const___ptr64]
mov rdx, rax
lea r8, [0x14005cea0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll__wfopen_s]
mov r9, qword [rsp + 0x20]
test r9, r9
jne 0x140041b2a
jmp 0x140041fb5
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rsp + 0x28]
call qword [sym.imp.MSVCR100.dll_fread]
cmp rax, 1
je 0x140041b55
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll_fclose]
nop
jmp 0x140041fb5
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
cmp edx, 0x74746366
je 0x140041ca9
lea rdx, [0x14005cd54]
lea rcx, [rsp + 0x50]
call qword [sym.imp.acdb19.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64]
nop
mov rax, qword [rsi]
mov r8d, 1
lea rdx, [rbp + 0x20]
mov rcx, rsi
call qword [rax + 0x20]
nop
mov r8, qword [rax]
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [r8 + 0x88]
test eax, eax
sete bl
lea rcx, [rbp + 0x20]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
mov rcx, qword [rsp + 0x20]
test bl, bl
je 0x140041c6f
test rcx, rcx
je 0x140041c63
mov r9, rsi
xor edx, edx
mov r8d, 0x409
call fcn.140041ff0
test al, al
jne 0x140041c09
mov rcx, qword [rsp + 0x20]
jmp 0x140041c63
mov rdx, rsi
lea rcx, [rsp + 0x50]
call qword [sym.imp.acdb19.dll_public:_void___cdecl_AdXREFString::constructor_class_AdXREFString_const____ptr64____ptr64]
nop
lea rdx, [0x14005cd54]
mov rcx, rsi
call qword [sym.imp.acdb19.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64____ptr64]
mov r11, qword [rsi]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [r11 + 0xf0]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll_fclose]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
mov al, 1
jmp 0x140041fc1
call qword [sym.imp.MSVCR100.dll_fclose]
nop
jmp 0x140041fb5
test rcx, rcx
je 0x140041c8e
mov r9, rsi
xor edx, edx
mov r8d, 0x409
call fcn.140041ff0
movzx ebx, al
mov rcx, qword [rsp + 0x20]
jmp 0x140041c90
xor bl, bl
call qword [sym.imp.MSVCR100.dll_fclose]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
movzx eax, bl
jmp 0x140041fc1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll_fseek]
mov r9, qword [rsp + 0x20]
mov edx, 0xc
lea r8d, [rdx - 0xb]
lea rcx, [rbp - 0x50]
call qword [sym.imp.MSVCR100.dll_fread]
cmp rax, 1
je 0x140041ce8
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll_fclose]
nop
jmp 0x140041fb5
mov ecx, dword [rbp - 0x48]
mov r12d, ecx
and r12d, 0xff0000
mov eax, ecx
shr eax, 0x10
or r12d, eax
shr r12d, 8
mov eax, ecx
and eax, 0xff00
shl eax, 8
or r12d, eax
shl ecx, 0x18
and ecx, 0xff000000
or r12d, ecx
lea rcx, [rbp + 0x20]
call qword [sym.imp.acdb19.dll_public:_void___cdecl_AdXREFString::constructor_void____ptr64]
nop
mov edi, 1
cmp r12d, edi
jl 0x140041f9e
nop word [rax + rax]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140041e72
lea r9, [rbp + 0x20]
mov r8d, r13d
mov edx, edi
call fcn.140041ff0
test al, al
je 0x140041e72
lea rdx, [0x14005cd54]
lea rcx, [rsp + 0x50]
call qword [sym.imp.acdb19.dll_public:_void___cdecl_AdXREFString::constructor_wchar_t_const____ptr64____ptr64]
nop
mov rax, qword [rsi]
mov r8d, 1
lea rdx, [rbp + 0x80]
mov rcx, rsi
call qword [rax + 0x20]
nop
mov r8, qword [rax]
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [r8 + 0x88]
test eax, eax
sete bl
lea rcx, [rbp + 0x80]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
test bl, bl
je 0x140041e04
mov rax, qword [rsi]
or r9, 0xffffffffffffffff
lea r8d, [r9 + 2]
lea rdx, [rbp + 0x80]
mov rcx, rsi
call qword [rax + VariantCopy]
nop
mov rdx, rax
lea rcx, [rbp + 0x20]
call qword [sym.imp.acdb19.dll_public_virtual:_int___cdecl_AdXREFString::CollateNoCase_class_AdXREFString_const____ptr64_const___ptr64]
test eax, eax
sete bl
lea rcx, [rbp + 0x80]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
test bl, bl
jne 0x140041e82
jmp 0x140041e72
mov rdx, rsi
lea rcx, [rbp + 0x20]
call qword [sym.imp.acdb19.dll_public_virtual:_int___cdecl_AdXREFString::CollateNoCase_class_AdXREFString_const____ptr64_const___ptr64]
test eax, eax
je 0x140041f34
lea rcx, [rsp + 0x50]
call qword [sym.imp.acdb19.dll_public:_void___cdecl_AdXREFString::constructor_void____ptr64]
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140041e41
lea r9, [rsp + 0x50]
mov r8d, 0x409
mov edx, edi
call fcn.140041ff0
lea rdx, [rsp + 0x50]
lea rcx, [0x1400818b0]
call fcn.1400208f0
mov r8, rax
lea rdx, [rsp + 0x30]
lea rcx, [0x1400818b0]
call fcn.1400203f0
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
inc edi
cmp edi, r12d
jg 0x140041f9e
jmp 0x140041d40
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140041f0e
mov r9, rsi
mov r8d, 0x409
mov edx, edi
call fcn.140041ff0
movzx ebx, al
test al, al
je 0x140041f07
mov rdx, rsi
lea rcx, [rsp + 0x50]
call qword [sym.imp.acdb19.dll_public:_void___cdecl_AdXREFString::constructor_class_AdXREFString_const____ptr64____ptr64]
nop
lea rdx, [0x14005cd54]
mov rcx, rsi
call qword [sym.imp.acdb19.dll_public:_class_AdXREFString_const____ptr64___cdecl_AdXREFString::operator_wchar_t_const____ptr64____ptr64]
mov r11, qword [rsi]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [r11 + 0xf0]
mov rdx, rsi
lea rcx, [0x1400818b0]
call fcn.1400208f0
mov r8, rax
lea rdx, [rsp + 0x30]
lea rcx, [0x1400818b0]
call fcn.1400203f0
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
mov rcx, qword [rsp + 0x20]
jmp 0x140041f10
xor bl, bl
call qword [sym.imp.MSVCR100.dll_fclose]
nop
lea rcx, [rbp + 0x20]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
movzx eax, bl
jmp 0x140041fc1
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140041f53
mov r9, rsi
mov r8d, 0x409
mov edx, edi
call fcn.140041ff0
movzx ebx, al
jmp 0x140041f55
xor bl, bl
mov rdx, rsi
lea rcx, [0x1400818b0]
call fcn.1400208f0
mov r8, rax
lea rdx, [rsp + 0x30]
lea rcx, [0x1400818b0]
call fcn.1400203f0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll_fclose]
nop
lea rcx, [rbp + 0x20]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
movzx eax, bl
jmp 0x140041fc1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll_fclose]
nop
lea rcx, [rbp + 0x20]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.acdb19.dll_public_virtual:_void___cdecl_AdXREFString::destructor_void____ptr64]
xor al, al
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140049a80
mov rbx, qword [rsp + 0x220]
add rsp, 0x1f0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret