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

Disassembly:
mov eax, 0x47e3da
call fcn.0044d428
sub esp, 0x3dc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
push 0x104
lea eax, [ebp - 0x3e8]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
call esi
lea eax, [ebp - 0x3e8]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00402bb5
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 4], ebx
call fcn.004046ef
pop ecx
pop ecx
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.0040287e
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x4150bc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x1e0]
push eax
call fcn.0044d900
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1e0]
push eax
call fcn.0044f107
lea eax, [ebp - 0x10]
push eax
call fcn.0044d870
add esp, 0x20
cmp byte [ebp + eax - 0x11], 0x5c
je 0x4150ff
lea eax, [ebp - 0x10]
push 0x4898ec
push eax
call fcn.0040d5cb
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1e0]
push eax
call fcn.0040d5c1
lea eax, [ebp - 0x1e0]
push 0x485780
push eax
call fcn.0040d5cb
add esp, 0x10
lea eax, [ebp - 0x1e0]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00403846
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 3
call fcn.004047e4
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.0040155a
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x415168
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x415199
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x41517f
lea eax, [ebp - 0x4c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x415199
push 0x208
lea eax, [ebp - 0x3e8]
push eax
call esi
mov eax, dword [ebp + 8]
cmp byte [eax], bl
jne 0x4151c4
push dword [ebp + 0x14]
lea eax, [ebp - 0x1e0]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00414f03
mov dword [ebp - 0x14], eax
jmp 0x415273
lea eax, [ebp - 0x3e8]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00402bb5
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xdc]
push eax
mov byte [ebp - 4], 6
call fcn.004046ef
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
call fcn.00401a50
push ebx
push edi
lea ecx, [ebp - 0xdc]
call fcn.0040155a
push ebx
push edi
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 5
call fcn.0040287e
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
jae 0x415229
lea eax, [ebp - 0x30]
push dword [ebp + 0xc]
push eax
push dword [0x49e154]
push dword [0x49e12c]
call fcn.00403868
mov eax, dword [ebp - 0x30]
add esp, 0x10
cmp dword [ebp - 0x1c], 0x10
jae 0x41524d
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x88]
call fcn.00403846
lea eax, [ebp - 0x88]
push eax
call fcn.0041c2d8
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x88]
call fcn.0040155a
push ebx
push edi
lea ecx, [ebp - 0x50]
call fcn.0040155a
push ebx
push edi
lea ecx, [ebp - 0x34]
call fcn.0040155a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10