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

Disassembly:
sub esp, 0x424
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x420], eax
cmp byte [0x44668c], 0
push ebp
mov ebp, dword [esp + 0x42c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [esp + 0x18], ebp
jne 0x411ae4
mov eax, dword [0x446688]
test eax, eax
jne 0x411aca
push str.imagehlp.dll
call esi
test eax, eax
mov dword [0x446688], eax
je 0x411add
push 0x446684
push str.MakeSureDirectoryPathExists
push eax
call fcn.00411950
add esp, 0xc
mov byte [0x44668c], 1
cmp byte [0x446680], 0
jne 0x411b20
mov eax, dword [0x44667c]
test eax, eax
jne 0x411b06
push str.shell32.dll
call esi
test eax, eax
mov dword [0x44667c], eax
je 0x411b19
push 0x446678
push str.SHCreateDirectoryExA
push eax
call fcn.00411950
add esp, 0xc
mov byte [0x446680], 1
cmp dword [0x446678], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x411b69
push ebp
lea eax, [esp + 0x228]
push eax
call edi
lea ecx, [esp + 0x224]
push ecx
call fcn.00411980
add esp, 4
push 0
lea edx, [esp + 0x228]
push edx
push 0
call dword [0x446678]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x411d21
cmp dword [0x446684], 0
je 0x411ba5
push ebp
lea eax, [esp + 0x228]
push eax
call edi
lea ecx, [esp + 0x224]
push ecx
call fcn.00411a20
add esp, 4
lea edx, [esp + 0x224]
push edx
call dword [0x446684]
mov esi, eax
test esi, esi
jne 0x411d21
push ebp
lea eax, [esp + 0x124]
push eax
call edi
lea ecx, [esp + 0x120]
push ecx
call fcn.00411980
add esp, 4
lea edx, [esp + 0x328]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov al, byte [esp + 0x121]
cmp al, 0x3a
lea edi, [esp + 0x120]
lea esi, [esp + 0x1c]
jne 0x411c20
cmp byte [esp + 0x122], 0x5c
mov al, byte [esp + 0x120]
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], 0x3a
lea esi, [esp + 0x1e]
lea edi, [esp + 0x122]
jne 0x411c4d
mov byte [esp + 0x1e], 0x5c
lea esi, [esp + 0x1f]
lea edi, [esp + 0x123]
jmp 0x411c4d
cmp byte [esp + 0x120], 0x5c
jne 0x411c4d
cmp al, 0x5c
mov byte [esp + 0x1c], 0x5c
lea esi, [esp + 0x1d]
lea edi, [esp + 0x121]
jne 0x411c4d
mov byte [esp + 0x1d], al
lea esi, [esp + 0x1e]
lea edi, [esp + 0x122]
push ebx
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 3
jle 0x411c6a
cmp byte [ebp], 0x5c
jne 0x411c6a
cmp byte [ebp + 1], 0x5c
jne 0x411c6a
mov bl, 1
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [edi], 0x5c
jne 0x411c8a
lea ecx, [esp + 0x124]
push edi
push ecx
call fcn.004118e0
add esp, 8
test eax, eax
je 0x411c90
mov al, byte [edi]
test al, al
jne 0x411cff
test bl, bl
je 0x411ca6
mov al, byte [edi]
test al, al
je 0x411d0c
mov byte [esi], al
add esi, 1
add edi, 1
xor bl, bl
jmp 0x411c70
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea edx, [esp + 0x10]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esi], 0
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x20]
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x411d0e
cmp byte [edi], 0
je 0x411d0e
cmp byte [edi + 1], 0
je 0x411d0e
add edi, 1
lea esi, [esp + 0x20]
jmp 0x411c70
mov byte [esi], al
add esi, 1
add edi, 1
jmp 0x411c70
xor esi, esi
lea edx, [esp + 0x32c]
push edx
call ebp
test esi, esi
pop ebx
je 0x411d2e
mov ebp, dword [esp + 0x18]
push 0
push ebp
push 1
push 8
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [esp + 0x42c]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.0040ffc4
add esp, 0x424
ret