Function at 0x729710
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff348
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x20]
mov edi, dword [ebp + 8]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], eax
call fcn.0072be74
test eax, eax
jne 0x72976a
push 5
call sub.kernel32.dll_SetLastError
push 1
call sub.kernel32.dll_GetLastError_2
push eax
push 0x7987e4
call fcn.0072d860
add esp, 8
push eax
push 0x1050
push 0x7987ba
push 0x7987ae
push 1
call fcn.0072d754
jmp 0x729d2b
mov edx, dword [ebp + 0x2c]
xor ecx, ecx
mov dword [edx], ecx
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0xffffffffffffffff
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar_1
lea ecx, [ebp - 0x218]
push ecx
call fcn.00728134
pop ecx
mov esi, eax
test esi, esi
jne 0x7297d0
push 1
call sub.kernel32.dll_GetLastError_2
push eax
push 0x798820
call fcn.0072d860
add esp, 8
push eax
push 0x105b
push 0x7987f6
push 0x7987ea
push 1
call fcn.0072d754
jmp 0x729d2b
push esi
call fcn.007283cc
push 0
push esi
call sub.kernel32.dll_CreateDirectoryW
push esi
mov eax, dword [ebp + 0xc]
push eax
call fcn.007282ac
test eax, eax
jne 0x72981d
push 1
call sub.kernel32.dll_GetLastError_2
push eax
push 0x79885c
call fcn.0072d860
add esp, 8
push eax
push 0x1064
push 0x798832
push 0x798826
push 1
call fcn.0072d754
jmp 0x729d2b
test ebx, ebx
je 0x729916
push esi
lea edx, [ebp - 0x628]
push edx
call fcn.00724fcc
add esp, 8
push 0x798862
lea ecx, [ebp - 0x628]
push ecx
call fcn.00725138
add esp, 8
push ebx
lea eax, [ebp - 0x628]
push eax
call fcn.00725138
add esp, 8
push 0x104
lea edx, [ebp - 0x830]
push edx
call sub.kernel32.dll_GetSystemDirectoryW
test eax, eax
jne 0x72989f
push 1
call sub.kernel32.dll_GetLastError_2
push eax
push 0x79889c
call fcn.0072d860
add esp, 8
push eax
push 0x1077
push 0x798872
push 0x798866
push 1
call fcn.0072d754
jmp 0x729d2b
push 0x7988a2
lea ecx, [ebp - 0x830]
push ecx
call fcn.00725138
add esp, 8
push ebx
lea eax, [ebp - 0x830]
push eax
call fcn.00725138
add esp, 8
lea edx, [ebp - 0x830]
lea ecx, [ebp - 0x628]
push 1
push 0
push edx
push ecx
call fcn.0072c3e4
push ebx
call fcn.0072d5d8
pop ecx
test eax, eax
jne 0x729916
push 1
call sub.kernel32.dll_GetLastError_2
push eax
push 0x7988dc
call fcn.0072d860
add esp, 8
push eax
push 0x1082
push 0x7988b2
push 0x7988a6
push 1
call fcn.0072d754
jmp 0x729d2b
cmp dword [ebp + 0x1c], 0
je 0x72992a
mov eax, dword [ebp + 0x1c]
cmp word [eax], 0
jne 0x72992a
xor edx, edx
mov dword [ebp + 0x1c], edx
cmp dword [ebp + 0x1c], 0
je 0x7299a0
push 0x104
lea ecx, [ebp - 0xa38]
push ecx
call sub.kernel32.dll_GetWindowsDirectoryW
test eax, eax
jne 0x729976
push 1
call sub.kernel32.dll_GetLastError_2
push eax
push 0x798918
call fcn.0072d860
add esp, 8
push eax
push 0x109a
push 0x7988ee
push 0x7988e2
push 1
call fcn.0072d754
jmp 0x729d2b
lea eax, [ebp - 0xa38]
push eax
call fcn.00724c48
pop ecx
push eax
lea edx, [ebp - 0xa38]
push edx
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.00725214
add esp, 0xc
test eax, eax
jne 0x7299a0
xor eax, eax
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 0x1c], 0
je 0x7299e4
mov edx, dword [ebp + 0x1c]
push edx
call fcn.00728308
test eax, eax
jne 0x7299e4
push 1
call sub.kernel32.dll_GetLastError_2
push eax
push 0x798954
call fcn.0072d860
add esp, 8
push eax
push 0x10aa
push 0x79892a
push 0x79891e
push 1
call fcn.0072d754
jmp 0x729d2b
mov dword [ebp - 4], 1
mov ebx, dword [ebp + 0x14]
push ebx
call fcn.00724c48
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x729d24
xor eax, eax
mov dword [ebp - 0xc], eax
push str..inf
push ebx
call fcn.00724c48
pop ecx
sub eax, 4
add eax, eax
add eax, ebx
push eax
call fcn.00724e48
add esp, 8
test eax, eax
jne 0x729ac2
push esi
lea edx, [ebp - 0x420]
push edx
call fcn.00724fcc
add esp, 8
push 0x798964
lea ecx, [ebp - 0x420]
push ecx
call fcn.00725138
add esp, 8
push ebx
lea eax, [ebp - 0x420]
push eax
call fcn.00725138
add esp, 8
test edi, edi
je 0x729a87
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
lea eax, [ebp - 0x420]
push eax
call fcn.00728fb4
add esp, 0xc
test eax, eax
je 0x729d2b
jmp 0x729d05
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
lea eax, [ebp - 0x420]
push eax
call fcn.007294c4
add esp, 0xc
test eax, eax
jne 0x729d05
call sub.kernel32.dll_GetLastError_2
cmp eax, 0xe0000235
je 0x729d2b
mov dword [ebp - 0xc], 1
jmp 0x729d05
push 0x798968
push ebx
call fcn.00724c48
pop ecx
sub eax, 4
add eax, eax
add eax, ebx
push eax
call fcn.00724e48
add esp, 8
test eax, eax
jne 0x729b72
lea edx, [ebp - 0x420]
push edx
push 0
push ebx
push esi
call fcn.00729690
add esp, 0x10
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x420]
mov eax, dword [ebp + 0x28]
push eax
mov edx, dword [ebp + 0x1c]
push edx
push ecx
mov eax, dword [ebp + 0x10]
push eax
push edi
call fcn.00727984
add esp, 0x18
test eax, eax
jne 0x729d05
test edi, edi
je 0x729b56
push 1
call sub.kernel32.dll_GetLastError_2
push eax
push 0x7989a8
call fcn.0072d860
add esp, 8
push eax
push 0x10f1
push 0x79897e
push 0x798972
push 1
call fcn.0072d754
jmp 0x729d2b
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x424
je 0x729d05
mov dword [ebp - 0xc], 1
jmp 0x729d05
push str..dll
push ebx
call fcn.00724c48
pop ecx
sub eax, 4
add eax, eax
add eax, ebx
push eax
call fcn.00724e48
add esp, 8
test eax, eax
je 0x729ba9
push 0x1104
push 0x7989d7
push str.DsIsDllFileExtension_fileName_
call fcn.00724ad4
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
push 0
push ebx
push esi
call fcn.00729690
mov word [ebp - 0xc40], 0
add esp, 0x10
call fcn.0072b660
test eax, eax
je 0x729be1
lea ecx, [ebp - 0xc40]
push ecx
push 1
push ebx
push esi
call fcn.00729690
add esp, 0x10
xor ebx, ebx
test edi, edi
je 0x729bf1
mov ebx, 1
jmp 0x729c8f
mov eax, dword [ebp + 0x18]
push eax
call fcn.00724c48
pop ecx
cmp eax, 0x3c
jb 0x729c17
push 0x1123
push 0x798a46
push str.sizeof_mainDriverServiceName__sizeof_WCHAR____wcslen_MainDriverName_
call fcn.00724ad4
add esp, 0xc
mov edx, dword [ebp + 0x18]
push edx
lea ecx, [ebp - 0xcb8]
push ecx
call fcn.00724fcc
add esp, 8
push 0x2e
lea eax, [ebp - 0xcb8]
push eax
call fcn.00725178
mov word [eax], 0
add esp, 8
lea edx, [ebp - 0xcb8]
lea eax, [ebp - 0xcb8]
push 0
push 0x3c
push edx
push 0
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call fcn.007285e0
test eax, eax
jne 0x729c6a
mov word [ebp - 0xcb8], 0
cmp word [ebp - 0xcb8], 0
je 0x729c8f
push 1
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0xcb8]
push ecx
call fcn.0072b37c
test eax, eax
jne 0x729c8f
mov ebx, 1
test ebx, ebx
je 0x729d05
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp + 0x1c]
push edx
cmp word [ebp - 0xc40], 0
je 0x729cad
lea ecx, [ebp - 0xc40]
jmp 0x729caf
xor ecx, ecx
push ecx
lea eax, [ebp - 0x420]
push eax
mov edx, dword [ebp + 0x10]
push edx
push edi
call fcn.00727f94
test eax, eax
jne 0x729d05
test edi, edi
je 0x729cfe
push 1
call sub.kernel32.dll_GetLastError_2
push eax
lea eax, [ebp - 0x420]
push eax
push str.__ws____d
call fcn.0072d860
add esp, 0xc
push eax
push 0x1147
push 0x798a7c
push 0x798a70
push 1
call fcn.0072d754
jmp 0x729d2b
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
je 0x729d13
mov edx, dword [ebp + 0x2c]
mov ecx, dword [ebp - 4]
or dword [edx], ecx
mov eax, dword [ebp - 8]
inc eax
add eax, eax
add dword [ebp + 0x14], eax
shl dword [ebp - 4], 1
jmp 0x7299eb
mov dword [ebp - 0x10], 1
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
test esi, esi
je 0x729d3c
push esi
call fcn.007283cc
push esi
call fcn.00724ba4
pop ecx
push ebx
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28