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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa5c
mov eax, dword [0x439030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xa5c], eax
mov edi, 0x206
xor eax, eax
xor esi, esi
push edi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.0041ba00
add esp, 0xc
xor eax, eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push edi
push esi
push eax
call fcn.0041ba00
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x418]
add esp, 0xc
push eax
push 0x104
call edi
lea eax, [ebp - 0x210]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x418]
push 0x431fd0
push eax
call esi
push ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push ebx
push eax
call fcn.0041ba00
add esp, 0xc
lea eax, [ebp - 0x620]
push eax
push 0x104
call edi
mov edi, 0x43ec9c
lea eax, [ebp - 0x620]
push edi
push ebx
push 0x431ff0
push eax
call esi
push 0x431ff8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ecx
push ecx
lea ecx, [ebp - 0x210]
call fcn.00410af1
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4029f7
mov dword [0x43c33c], 0x10000
jmp 0x402a4d
cmp dword [edi], 1
je 0x402a08
mov dword [0x43c33c], 0x80000
jmp 0x402a4d
mov esi, dword [edi + 4]
push 0x43ec9c
lea ebx, [esi + 0x244]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x402a45
push 0x2f
pop ecx
cmp ax, cx
je 0x402a45
push 0x4318c0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor ebx, ebx
mov dword [0x43c33c], ebx
lea eax, [ebp - 0xa58]
or edx, 0xffffffff
push eax
mov ecx, edi
call fcn.00410bad
xor eax, eax
mov dword [esp], 0x206
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push ebx
push eax
call fcn.0041ba00
add esp, 0xc
lea eax, [ebp - 0xa58]
xor edx, edx
mov ecx, edi
push eax
call fcn.00410bad
mov dword [esp], 0x104
lea eax, [ebp - 0x828]
push ebx
push eax
call fcn.0041ba00
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0xa54]
add esp, 0xc
push eax
lea eax, [ebp - 0x828]
push eax
call esi
mov ebx, dword [ebp - 0xa5c]
lea eax, [ebp - 0xa54]
push eax
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x431c1c
push ebx
call esi
test eax, eax
je 0x402b2b
push 0x431cdc
push ebx
call esi
test eax, eax
je 0x402b2b
push 0x431fd8
push ebx
call esi
test eax, eax
je 0x402b2b
push 0x2f
pop eax
push eax
push 0
push ebx
call dword [sym.imp.SHLWAPI.dll_StrRChrIW]
test eax, eax
je 0x402b12
push 0x431fe0
push eax
call esi
test eax, eax
je 0x402b35
push 0x431fe4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ecx
push ecx
push ebx
mov ecx, edi
call fcn.00410bec
add esp, 0xc
mov ecx, edi
call fcn.00410c1d
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041813f
mov esp, ebp
pop ebp
ret 8