Function at 0x140059010
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5d8]
sub rsp, 0x6b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov r13, rcx
xor r8d, r8d
lea rdx, str.CBaseFuncMgr::FN_CopyDriverSetToTempForPCL
lea rcx, [rsp + 0x68]
call fcn.1400075a0
nop
xor r15d, r15d
lea rcx, [0x1402e2d70]
call fcn.140023f10
test eax, eax
je 0x14005956a
xor esi, esi
xor r12d, r12d
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xf0]
mov dword [rsp + 0x40], eax
mov rcx, qword [0x1403b9750]
mov rdx, qword [rcx]
call qword [rdx + 0x18]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x28]
mov edi, eax
mov rcx, qword [0x1403b9750]
mov rdx, qword [rcx]
call qword [rdx + 0x18]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov r14d, eax
call fcn.140102a14
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x1400590f1
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x60], rbx
mov ecx, 0xac
call fcn.1401027e8
test rax, rax
je 0x14005912a
mov r8d, 0xac
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140005b00
mov rbx, qword [rsp + 0x60]
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
lea r8d, [r14 + rdi]
mov edx, 0x3f2
call qword [rax + 0x28]
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
mov r8, rbx
mov edx, 0x3f2
call qword [rax + 0x38]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rbp - 0x80]
lea rdx, str.INSTALLDIR
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1400591a9
lea r9, [rbp - 0x80]
lea r8, str._t_t_tMake_InstallDir___s.
lea edx, [rax + 7]
lea rcx, [rsp + 0x68]
call fcn.140007780
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8 + 0x58]
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140059356
mov ebx, dword [rsp + 0x40]
nop word [rax + rax]
lea r14, [rdi + 8]
mov ecx, dword [rdi + 0x3c90]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rdi]
mov dword [rsp + 0x28], ecx
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
mov r9, r14
lea r8, str._t_t_t_new_Copy_Driver_Set_is___s____s__kind_d_add_X
mov edx, 7
lea rcx, [rsp + 0x68]
call fcn.140007780
mov edi, 1
mov dword [rsp + 0x50], 0
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1b0]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x3c90]
or ecx, eax
mov dword [rsp + 0x48], ecx
test edi, ecx
je 0x140059307
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r9, qword [rax]
lea r8, [rsp + 0x50]
mov edx, edi
mov rcx, rax
call qword [r9 + 0x3c0]
mov r11d, dword [rsp + 0x50]
test r11d, r11d
je 0x14005928b
dec r11d
mov dword [rsp + 0x50], r11d
lea rdx, [0x1402e8c50]
mov rcx, r14
call fcn.140245e24
test rax, rax
jne 0x1400592d2
test r12d, edi
jne 0x140059303
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x20]
mov r9, qword [rax]
mov r8, r14
mov edx, dword [rsp + 0x50]
mov rcx, rax
call qword [r9 + 0x338]
mov r15d, eax
mov ecx, dword [rsp + 0x48]
test ebx, ebx
jne 0x140059307
or r12d, edi
jmp 0x140059307
test esi, edi
jne 0x140059303
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x20]
mov r9, qword [rax]
mov r8, r14
mov edx, dword [rsp + 0x50]
mov rcx, rax
call qword [r9 + 0x338]
mov r15d, eax
mov ecx, dword [rsp + 0x48]
test ebx, ebx
jne 0x140059307
or esi, edi
jmp 0x140059307
mov ecx, dword [rsp + 0x48]
add edi, edi
cmp edi, 0x20
jbe 0x140059250
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x60]
mov rdi, rax
mov qword [rsp + 0x58], rax
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
mov edx, 0x3f2
mov r8d, 1
call qword [rax + 0x30]
test rdi, rdi
jne 0x1400591e0
mov rbx, qword [rsp + 0x60]
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov dword [rsp + 0x58], eax
xor edi, edi
mov dword [rsp + 0x54], edi
test eax, eax
jle 0x140059533
mov ebx, dword [rsp + 0x40]
mov rcx, qword [0x1403b9750]
mov rdx, qword [rcx]
call qword [rdx + 0x18]
mov r8, qword [rax]
mov edx, edi
mov rcx, rax
call qword [r8 + WSAStartup]
mov rdi, rax
mov qword [rsp + 0x48], rax
mov rcx, qword [0x1403b9750]
mov rdx, qword [rcx]
call qword [rdx + 0x20]
lea r14, [rdi + 8]
mov r9, qword [rax]
mov r8, r14
lea rdx, [rbp + 0x190]
mov rcx, rax
call qword [r9 + 0x48]
mov ecx, dword [rdi + 0x3c90]
mov dword [rsp + 0x30], ecx
mov eax, dword [rdi]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
mov r9, r14
lea r8, str._t_t_t_Update_Copy_Driver_Set_is___s____s__kind_d_add_X
mov edx, 7
lea rcx, [rsp + 0x68]
call fcn.140007780
cmp dword [rdi + 4], 3
jne 0x140059502
mov edi, 1
mov dword [rsp + 0x40], 0
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1b0]
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x3c90]
or ecx, eax
mov dword [rsp + 0x48], ecx
nop
test edi, ecx
je 0x1400594f7
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r9, qword [rax]
lea r8, [rsp + 0x40]
mov edx, edi
mov rcx, rax
call qword [r9 + 0x3c0]
mov r11d, dword [rsp + 0x40]
test r11d, r11d
je 0x14005947b
dec r11d
mov dword [rsp + 0x40], r11d
lea rdx, [0x1402e8c50]
mov rcx, r14
call fcn.140245e24
test rax, rax
jne 0x1400594c2
test r12d, edi
jne 0x1400594f3
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x20]
mov r9, qword [rax]
mov r8, r14
mov edx, dword [rsp + 0x40]
mov rcx, rax
call qword [r9 + 0x338]
mov r15d, eax
mov ecx, dword [rsp + 0x48]
test ebx, ebx
jne 0x1400594f7
or r12d, edi
jmp 0x1400594f7
test esi, edi
jne 0x1400594f3
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x20]
mov r9, qword [rax]
mov r8, r14
mov edx, dword [rsp + 0x40]
mov rcx, rax
call qword [r9 + 0x338]
mov r15d, eax
mov ecx, dword [rsp + 0x48]
test ebx, ebx
jne 0x1400594f7
or esi, edi
jmp 0x1400594f7
mov ecx, dword [rsp + 0x48]
add edi, edi
cmp edi, 0x20
jbe 0x140059440
mov rcx, qword [0x1403b9760]
mov rax, qword [rcx]
mov edx, 0x3f2
mov r8d, 1
call qword [rax + 0x30]
mov edi, dword [rsp + 0x54]
inc edi
mov dword [rsp + 0x54], edi
cmp edi, dword [rsp + 0x58]
jl 0x140059382
mov rbx, qword [rsp + 0x60]
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x120]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005957a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14005957a
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x198]
mov r15d, eax
mov r9d, r15d
lea r8, str.return__08x
mov edx, 2
lea rcx, [rsp + 0x68]
call fcn.140007780
nop
lea rcx, [rsp + 0x68]
call fcn.140007730
mov eax, r15d
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x6b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret