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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x26c
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
test byte [0x7922a138], 8
jne 0x79216300
mov eax, dword [ebp + 8]
test eax, eax
je 0x792162e4
test esi, esi
jne 0x792162e4
call sym._GetProcessHeap_0
mov dword [esp + 8], 0x210
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapAlloc_12
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x79216445
lea edi, [ebp - 0x218]
mov dword [esp + 4], 0x104
mov dword [esp], edi
call sym._GetSystemDirectoryW_8
sub esp, 8
mov dword [esp + 4], str.catroot
mov dword [esp], edi
call sym._lstrcatW_8
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], edi
call sym._CreateDirectoryW_8
sub esp, 8
test ebx, ebx
je 0x792163c0
movzx eax, byte [ebx + 0xe]
movzx edx, byte [ebx + 0xf]
movzx ecx, byte [ebx + 0xd]
mov dword [ebp - 0x21c], eax
movzx eax, byte [ebx + 0xc]
mov dword [ebp - 0x220], eax
movzx eax, byte [ebx + 0xb]
mov dword [ebp - 0x224], eax
movzx eax, byte [ebx + 0xa]
mov dword [ebp - 0x228], eax
movzx eax, byte [ebx + 9]
mov dword [ebp - 0x22c], eax
movzx eax, byte [ebx + 8]
mov dword [ebp - 0x230], eax
movzx eax, word [ebx + 6]
mov dword [ebp - 0x234], eax
movzx eax, word [ebx + 4]
mov dword [ebp - 0x238], eax
mov eax, dword [ebx]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x21c]
lea ebx, [esi + 4]
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 0x30], eax
mov eax, dword [ebp - 0x220]
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x224]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x228]
mov dword [esp + 4], str._s_08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x230]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x234]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x238]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x23c]
mov dword [esp + 0xc], eax
call dword [sym.imp.msvcrt.dll_swprintf]
mov dword [esp], ebx
mov dword [esp + 4], 0
call sym._CreateDirectoryW_8
mov eax, dword [ebp + 8]
mov dword [esi], 0x43415441
mov dword [esi + 0x20c], 0xffffffff
sub esp, 8
mov dword [eax], esi
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esp], 0x57
call sym._SetLastError_4
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
test ebx, ebx
je 0x79216460
mov eax, ebx
shr eax, 0x10
je 0x79216430
movzx eax, byte [ebx + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 8]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 6]
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], 0x7922b7d8
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str._p__s__x_n
mov dword [esp + 0x10], 0x71
mov dword [esp + 0xc], str.CryptCATAdminAcquireContext
mov dword [esp + 8], 0x7922b851
mov dword [esp + 4], 0x7922a138
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x7921614f
mov dword [ebp - 0x23c], 0x127d0a1d
mov ecx, 0xc2
mov edx, 0xee
mov dword [ebp - 0x238], 0x4ef2
mov dword [ebp - 0x234], 0x11d1
mov dword [ebp - 0x230], 0x86
mov dword [ebp - 0x22c], 8
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0xc0
mov dword [ebp - 0x220], 0x4f
mov dword [ebp - 0x21c], 0x95
jmp 0x79216233
mov dword [esp + 4], ebx
mov dword [esp], 0x7922b7c7
call sym._wine_dbg_sprintf
jmp 0x79216375
mov dword [esp], 0xe
call sym._SetLastError_4
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov eax, 0x7922b7c0
jmp 0x79216375