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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4efd34]
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.00421bf0
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.00421bf0
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.00421bf0
add esp, 0xc
mov ecx, esi
call fcn.00421c80
mov eax, dword [esi + 0xb68]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4b8f88
push 0
mov ecx, esi
mov dword [esi + 0xb68], 0
call fcn.00421fc0
push eax
push str.m_hDriverMutex___X
push esi
mov dword [esi + 0xb68], eax
call fcn.00421bf0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
cmp dword [esi + 0xb68], 0
jne 0x4221f7
call edi
push eax
push str.__err_d
push esi
call fcn.00421bf0
add esp, 0xc
push 0x4b7964
push esi
call fcn.00421bf0
add esp, 8
test ebx, ebx
mov dword [esi + 0x20c], ebp
lea ebp, [esi + 0x410]
je 0x422226
push ebx
push 0x200
push ebp
call fcn.004979df
add esp, 0xc
jmp 0x422232
push ebp
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [esi + 0x20c], 0
push ebp
je 0x422275
push str._scpuz132_
lea ecx, [esp + 0x20]
push 0x200
push ecx
call fcn.004374b0
add esp, 0x10
push 0
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x422270
call edi
cmp eax, 0xb7
je 0x422270
push ebp
jmp 0x422275
lea eax, [esp + 0x18]
push eax
push 0x200
lea edi, [esi + 0x610]
push edi
call fcn.004979df
add esp, 0xc
push edi
push str.m_szPath_2___s_n
push esi
call fcn.00421bf0
push str.cpuz132
lea edi, [esi + 0xa10]
push 0x100
push edi
call fcn.004979df
mov eax, dword [esi + 0xb50]
add esp, 0x18
sub eax, 1
je 0x422345
sub eax, 1
je 0x4222d1
mov dword [esp + 0x10], 0x5002
xor edi, edi
jmp 0x422385
push str.cpuz132
lea ecx, [esi + 0xb10]
push 0x40
push ecx
call fcn.004979df
add esp, 0xc
cmp dword [esi + 0xb5c], 0
je 0x4222f7
push str._x64.sys
jmp 0x42230c
cmp dword [esi + 0xb60], 0
je 0x422307
push str._ia64.sys
jmp 0x42230c
push str._x32.sys
push 0x100
push edi
call fcn.004373f0
add esp, 0xc
push edi
push str.m_szFilename___s_n
push esi
call fcn.00421bf0
add esp, 0xc
push 0x7d0
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00421e90
mov ecx, esi
mov edi, eax
call fcn.00421f60
jmp 0x422385
push str.cpuz.vxd
push 0x100
push edi
call fcn.004979df
push 0x4b8f88
lea eax, [esi + 0xb10]
push 0x40
push eax
call fcn.004979df
push edi
push str.m_szFilename___s_n
push esi
call fcn.00421bf0
add esp, 0x24
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004227d0
mov edi, eax
mov edx, dword [esp + 0x10]
push edx
push str.bInitDriver_returned__d_n
push esi
call fcn.00421bf0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
mov dword [ecx], eax
jne 0x4223b4
push ebx
push 1
push 1
mov ecx, esi
call fcn.00421df0
mov ecx, dword [esp + 0x218]
mov eax, edi
pop edi
mov dword [esi + 0xd74], ebx
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004972eb
add esp, 0x20c
ret 0xc