Function at 0x41ee18
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004234c1
add esp, 4
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
test ecx, ecx
jne 0x41f02c
push 0x467da0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41f02c
push 0x467dac
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41ef91
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0xa520a1a4
mov word [ebp - 0x20], 0x1780
mov word [ebp - 0x1e], 0x4ff6
mov byte [ebp - 0x1c], 0xbd
mov byte [ebp - 0x1b], 0x18
mov byte [ebp - 0x1a], 0x16
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x18], 0x43
mov byte [ebp - 0x17], 0xc5
mov byte [ebp - 0x16], 0xaf
mov byte [ebp - 0x15], 0x16
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
call dword [ebp - 8]
test eax, eax
jne 0x41ef91
cmp dword [ebp - 0x10], 0
je 0x41ef91
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx]
test eax, eax
je 0x41ef91
push 0x104
call fcn.004268ab
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x41ef0f
mov dword [ebp - 0x34], 0
jmp 0x41ef44
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
add eax, 3
and al, 0xfc
call fcn.00427980
mov dword [ebp - 0x38], esp
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00416cf0
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
push edx
push 0x467dc4
push 0x104
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004274e8
add esp, 0x10
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp + 0x10]
and edx, 0xff
test edx, edx
je 0x41ef91
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x41f022
push 0x467dcc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x41f022
push 0x104
call fcn.004268ab
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
push 0
push 0x1a
push 0
call dword [ebp - 0x30]
test eax, eax
jne 0x41f022
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x41f022
push 0x104
push 0x467de0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00427ff0
add esp, 0xc
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 0x10]
and eax, 0xff
test eax, eax
je 0x41f022
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x41f095
push 0x104
call fcn.004268ab
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
push 0x467de8
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00427ff0
add esp, 0xc
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 0x10]
and eax, 0xff
test eax, eax
je 0x41f095
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea esp, [ebp - 0x38]
mov esp, ebp
pop ebp
ret