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

Disassembly:
sub esp, 0x424
mov eax, dword [0x42c2e4]
xor eax, esp
mov dword [esp + 0x420], eax
cmp byte [0x4497b4], 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 0x411bb4
mov eax, dword [0x4497b0]
test eax, eax
jne 0x411b9a
push str.imagehlp.dll
call esi
test eax, eax
mov dword [0x4497b0], eax
je 0x411bad
push 0x4497ac
push str.MakeSureDirectoryPathExists
push eax
call fcn.0040f630
add esp, 0xc
mov byte [0x4497b4], 1
cmp byte [0x4497a8], 0
jne 0x411bf0
mov eax, dword [0x4497a4]
test eax, eax
jne 0x411bd6
push str.shell32.dll
call esi
test eax, eax
mov dword [0x4497a4], eax
je 0x411be9
push 0x4497a0
push str.SHCreateDirectoryExA
push eax
call fcn.0040f630
add esp, 0xc
mov byte [0x4497a8], 1
cmp dword [0x4497a0], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x411c39
push ebp
lea eax, [esp + 0x228]
push eax
call edi
lea ecx, [esp + 0x224]
push ecx
call fcn.00411a50
add esp, 4
push 0
lea edx, [esp + 0x228]
push edx
push 0
call dword [0x4497a0]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x411df1
cmp dword [0x4497ac], 0
je 0x411c75
push ebp
lea eax, [esp + 0x228]
push eax
call edi
lea ecx, [esp + 0x224]
push ecx
call fcn.00411af0
add esp, 4
lea edx, [esp + 0x224]
push edx
call dword [0x4497ac]
mov esi, eax
test esi, esi
jne 0x411df1
push ebp
lea eax, [esp + 0x124]
push eax
call edi
lea ecx, [esp + 0x120]
push ecx
call fcn.00411a50
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 0x411cf0
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 0x411d1d
mov byte [esp + 0x1e], 0x5c
lea esi, [esp + 0x1f]
lea edi, [esp + 0x123]
jmp 0x411d1d
cmp byte [esp + 0x120], 0x5c
jne 0x411d1d
cmp al, 0x5c
mov byte [esp + 0x1c], 0x5c
lea esi, [esp + 0x1d]
lea edi, [esp + 0x121]
jne 0x411d1d
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 0x411d3a
cmp byte [ebp], 0x5c
jne 0x411d3a
cmp byte [ebp + 1], 0x5c
jne 0x411d3a
mov bl, 1
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [edi], 0x5c
jne 0x411d5a
lea ecx, [esp + 0x124]
push edi
push ecx
call fcn.0040ec60
add esp, 8
test eax, eax
je 0x411d60
mov al, byte [edi]
test al, al
jne 0x411dcf
test bl, bl
je 0x411d76
mov al, byte [edi]
test al, al
je 0x411ddc
mov byte [esi], al
add esi, 1
add edi, 1
xor bl, bl
jmp 0x411d40
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 0x411dde
cmp byte [edi], 0
je 0x411dde
cmp byte [edi + 1], 0
je 0x411dde
add edi, 1
lea esi, [esp + 0x20]
jmp 0x411d40
mov byte [esi], al
add esi, 1
add edi, 1
jmp 0x411d40
xor esi, esi
lea edx, [esp + 0x32c]
push edx
call ebp
test esi, esi
pop ebx
je 0x411dfe
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.004121f9
add esp, 0x424
ret