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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4e86e0]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x214]
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
push ebp
push ebx
mov esi, ecx
push str.bInitDriver__s___d__n
push esi
mov dword [esp + 0x24], eax
call fcn.00421b50
add esp, 0x10
lea edi, [esi + 4]
push edi
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
push str.GetCurrentDirectory___s_n
push esi
call fcn.00421b50
add esp, 0xc
push 0x200
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x18]
push edx
push str.GetModuleFileName___s_n
push esi
call fcn.00421b50
add esp, 0xc
mov ecx, esi
call fcn.00421be0
mov eax, dword [esi + 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4b2f84
push 0
mov ecx, esi
mov dword [esi + 0xb68], 0
call fcn.00421f10
push eax
push str.m_hDriverMutex___X
push esi
mov dword [esi + 0xb68], eax
call fcn.00421b50
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
cmp dword [esi + 0xb68], 0
jne 0x422147
call edi
push eax
push str.__err_d
push esi
call fcn.00421b50
add esp, 0xc
push 0x4b18d4
push esi
call fcn.00421b50
add esp, 8
test ebx, ebx
mov dword [esi + 0x20c], ebp
lea ebp, [esi + 0x410]
je 0x422176
push ebx
push 0x200
push ebp
call fcn.004917bc
add esp, 0xc
jmp 0x422182
push ebp
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [esi + 0x20c], 0
push ebp
je 0x4221c5
push str._scpuz131_
lea ecx, [esp + 0x20]
push 0x200
push ecx
call fcn.00437120
add esp, 0x10
push 0
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4221c0
call edi
cmp eax, 0xb7
je 0x4221c0
push ebp
jmp 0x4221c5
lea eax, [esp + 0x18]
push eax
push 0x200
lea edi, [esi + 0x610]
push edi
call fcn.004917bc
add esp, 0xc
push edi
push str.m_szPath_2___s_n
push esi
call fcn.00421b50
push 0x4b2f84
lea edi, [esi + 0xa10]
push pe_nt_image_headers32
push edi
call fcn.004917bc
mov eax, dword [esi + 0xb50]
add esp, 0x18
sub eax, 1
je 0x422295
sub eax, 1
je 0x422221
mov dword [esp + 0x10], 0x5002
xor edi, edi
jmp 0x4222d5
push str.cpuz131
lea ecx, [esi + 0xb10]
push 0x40
push ecx
call fcn.004917bc
add esp, 0xc
cmp dword [esi + 0xb5c], 0
je 0x422247
push str.cpuz_x64.sys
jmp 0x42225c
cmp dword [esi + 0xb60], 0
je 0x422257
push str.cpuz_ia64.sys
jmp 0x42225c
push str.cpuz_x32.sys
push pe_nt_image_headers32
push edi
call fcn.004917bc
add esp, 0xc
push edi
push str.m_szFilename___s_n
push esi
call fcn.00421b50
add esp, 0xc
push 0x7d0
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00421de0
mov ecx, esi
mov edi, eax
call fcn.00421eb0
jmp 0x4222d5
push str.cpuz.vxd
push pe_nt_image_headers32
push edi
call fcn.004917bc
push 0x4b2f84
lea eax, [esi + 0xb10]
push 0x40
push eax
call fcn.004917bc
push edi
push str.m_szFilename___s_n
push esi
call fcn.00421b50
add esp, 0x24
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00422630
mov edi, eax
mov edx, dword [esp + 0x10]
push edx
push str.bInitDriver_returned__d_n
push esi
call fcn.00421b50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add esp, 0xc
test edi, edi
mov dword [ecx], eax
jne 0x4222ff
push 1
mov ecx, esi
call fcn.00421d50
mov ecx, dword [esp + 0x218]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00490dce
add esp, 0x20c
ret 0xc