Function at 0x421c98
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.004267ad
add esp, 4
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
test ecx, ecx
jne 0x421eac
push 0x46c244
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x421eac
push 0x46c250
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 0x421e11
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 0x421e11
cmp dword [ebp - 0x10], 0
je 0x421e11
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx]
test eax, eax
je 0x421e11
push 0x104
call fcn.00429a5b
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 0x421d8f
mov dword [ebp - 0x34], 0
jmp 0x421dc4
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.0042ab30
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.00416f90
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
push edx
push 0x46c268
push 0x104
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.0042a698
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 0x421e11
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 0x421ea2
push 0x46c270
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 0x421ea2
push 0x104
call fcn.00429a5b
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 0x421ea2
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x421ea2
push 0x104
push 0x46c284
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0042b1a0
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 0x421ea2
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 0x421f15
push 0x104
call fcn.00429a5b
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 0x46c28c
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0042b1a0
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 0x421f15
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