Function at 0x140012630
Capabilities:
Check os version
Create directory

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, reloc.mfc90u.dll_CObList::AddTail
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1400c2038]
xor rax, rsp
mov qword [rsp + CDHtmlElementEventSink::AddRef], rax
mov r12, rcx
xor r13d, r13d
mov qword [rcx + 0xc0], r13
mov dword [rcx + 0x120], r13d
mov rax, qword [rcx + 0x88]
mov rsi, qword [rax]
mov rbp, qword [rcx + 0x60]
nop word [rax + rax]
mov rdi, qword [r12 + 0x88]
test rbp, rbp
je 0x1400126a4
cmp rbp, qword [r12 + 0x60]
je 0x1400126aa
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp rsi, rdi
je 0x140012782
test rbp, rbp
jne 0x1400126c3
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rdx, r13
jmp 0x1400126c7
mov rdx, qword [rbp]
cmp rsi, qword [rdx + 0x28]
jne 0x1400126d3
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rdi, qword [rsi + 0x10]
test rdi, rdi
jne 0x1400126e1
mov rbx, r13
jmp 0x140012752
mov rbx, r13
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
test eax, eax
je 0x14001270a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
mov rcx, rax
mov edx, 1
call fcn.140037300
mov rbx, rax
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x10]
test eax, eax
je 0x140012723
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x40]
add rbx, rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
mov rdi, rax
test rax, rax
je 0x140012752
xor edx, edx
mov rcx, rdi
call fcn.140037300
add rbx, rax
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 0x28]
mov rdi, rax
test rax, rax
jne 0x140012734
add qword [r12 + 0xc0], rbx
test rbp, rbp
jne 0x14001276a
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rdx, r13
jmp 0x14001276e
mov rdx, qword [rbp]
cmp rsi, qword [rdx + 0x28]
jne 0x14001277a
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rsi, qword [rsi]
jmp 0x140012690
cmp qword [r12 + 0x90], r13
jbe 0x1400127d3
mov rax, qword [r12 + 0x88]
mov rdi, qword [rax]
mov rdx, qword [r12 + 0x60]
test rdx, rdx
jne 0x1400127ac
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rdx, r13
jmp 0x1400127af
mov rdx, qword [rdx]
cmp rdi, qword [rdx + 0x28]
jne 0x1400127bb
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rdx, rax
lea rcx, [r12 + 0x28]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const____ptr64____ptr64]
cmp qword [r12 + 0x90], r13
jne 0x1400127f4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, r12
call fcn.140013280
jmp 0x140012bbf
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.140013280
lea rcx, [r12 + 0x130]
call fcn.1400118a0
mov rax, qword [r12 + 0x88]
mov rsi, qword [rax]
mov rbx, qword [r12 + 0x60]
mov ebp, 0xcd44
mov r14d, 0x11d0
nop dword [rax]
mov rdi, qword [r12 + 0x88]
test rbx, rbx
je 0x140012844
cmp rbx, qword [r12 + 0x60]
je 0x14001284a
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp rsi, rdi
je 0x140012ba0
mov rdx, r12
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
nop
lea rcx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 0x10
cmovae rcx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xc0]
cmp byte [rax + rcx - 1], 0x5c
je 0x1400128a3
lea rdx, [0x14008ee14]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______ptr64___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const____ptr64____ptr64]
cmp dword [0x1400ce808], 0
jne 0x140012abd
mov word [rsp + 0x1f0], r13w
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x1f2]
call sub.MSVCR90.dll_memset
mov r8d, new[]
lea rdx, [rsp + 0x1f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x1f0]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x140012ac7
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x20], 0x50
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x40], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x68], CDHtmlElementEventSink::AddRef
mov dword [rsp + 0x70], 0x20
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x98], 0xaac56b
mov word [rsp + 0x9c], bp
mov word [rsp + 0x9e], r14w
mov byte [rsp + 0xa0], 0x8c
mov byte [rsp + 0xa1], SetErrorInfo
mov byte [rsp + 0xa2], 0
mov byte [rsp + 0xa3], 0xc0
mov byte [rsp + 0xa4], 0x4f
mov byte [rsp + 0xa5], SetErrorInfo
mov byte [rsp + 0xa6], 0x95
mov byte [rsp + 0xa7], 0xee
mov rax, qword [0x1400ce810]
test rax, rax
jne 0x140012a26
lea rcx, str.Wintrust.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140012a16
lea rdx, str.WinVerifyTrust
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ce810], rax
jmp 0x140012a1d
mov rax, qword [0x1400ce810]
test rax, rax
je 0x140012ac7
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x98]
xor ecx, ecx
call rax
mov ecx, r13d
test eax, eax
sete cl
mov dword [0x1400c27e4], ecx
test ecx, ecx
jne 0x140012ab1
xor edx, edx
mov r8d, ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >
lea rcx, [rsp + 0xd4]
call sub.MSVCR90.dll_memset
mov dword [rsp + 0xd0], ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140012a80
mov ecx, r13d
jmp 0x140012aab
mov eax, dword [rsp + 0xd4]
cmp eax, 6
jae 0x140012a93
mov ecx, 1
jmp 0x140012aab
cmp eax, 6
jbe 0x140012a9d
mov ecx, r13d
jmp 0x140012aab
mov ecx, r13d
cmp dword [rsp + 0xd8], 1
setbe cl
mov dword [0x1400c27e4], ecx
mov dword [0x1400ce808], 1
jmp 0x140012ac3
mov ecx, dword [0x1400c27e4]
test ecx, ecx
je 0x140012b13
lea rdx, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 0x10
cmovae rdx, qword [rsp + 0xb0]
test rdx, rdx
je 0x140012b13
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp rcx, 0x104
jb 0x140012b0a
mov rcx, rdx
call fcn.140011f20
jmp 0x140012b13
mov rcx, rdx
call qword [sym.imp.MSVCR90.dll__mkdir]
cmp dword [r12 + 0x120], 0
jne 0x140012b92
test rbx, rbx
jne 0x140012b2e
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rdx, r13
jmp 0x140012b31
mov rdx, qword [rbx]
cmp rsi, qword [rdx + 0x28]
jne 0x140012b3d
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rdx, qword [rsi + 0x10]
test rdx, rdx
je 0x140012b5d
mov r9d, 1
lea r8, [rsp + 0xa8]
mov rcx, r12
call fcn.140012bf0
nop
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
test rbx, rbx
jne 0x140012b7b
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rdx, r13
jmp 0x140012b7e
mov rdx, qword [rbx]
cmp rsi, qword [rdx + 0x28]
jne 0x140012b8a
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rsi, qword [rsi]
jmp 0x140012830
lea rcx, [rsp + 0xa8]
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void____ptr64]
cmp dword [r12 + 0x120], 0
setne r13b
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 1]
mov rcx, r12
call fcn.140013280
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.140077470
lea r11, [rsp + reloc.mfc90u.dll_CObList::AddTail]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret