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

Disassembly:
sub esp, 0x424
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x420], eax
cmp byte [0x44a7f4], 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 0x4125c4
mov eax, dword [0x44a7f0]
test eax, eax
jne 0x4125aa
push str.imagehlp.dll
call esi
test eax, eax
mov dword [0x44a7f0], eax
je 0x4125bd
push 0x44a7ec
push str.MakeSureDirectoryPathExists
push eax
call fcn.00412430
add esp, 0xc
mov byte [0x44a7f4], 1
cmp byte [0x44a7e8], 0
jne 0x412600
mov eax, dword [0x44a7e4]
test eax, eax
jne 0x4125e6
push str.shell32.dll
call esi
test eax, eax
mov dword [0x44a7e4], eax
je 0x4125f9
push 0x44a7e0
push str.SHCreateDirectoryExA
push eax
call fcn.00412430
add esp, 0xc
mov byte [0x44a7e8], 1
cmp dword [0x44a7e0], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
je 0x412649
push ebp
lea eax, [esp + 0x228]
push eax
call edi
lea ecx, [esp + 0x224]
push ecx
call fcn.00412460
add esp, 4
push 0
lea edx, [esp + 0x228]
push edx
push 0
call dword [0x44a7e0]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x412801
cmp dword [0x44a7ec], 0
je 0x412685
push ebp
lea eax, [esp + 0x228]
push eax
call edi
lea ecx, [esp + 0x224]
push ecx
call fcn.00412500
add esp, 4
lea edx, [esp + 0x224]
push edx
call dword [0x44a7ec]
mov esi, eax
test esi, esi
jne 0x412801
push ebp
lea eax, [esp + 0x124]
push eax
call edi
lea ecx, [esp + 0x120]
push ecx
call fcn.00412460
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 0x412700
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 0x41272d
mov byte [esp + 0x1e], 0x5c
lea esi, [esp + 0x1f]
lea edi, [esp + 0x123]
jmp 0x41272d
cmp byte [esp + 0x120], 0x5c
jne 0x41272d
cmp al, 0x5c
mov byte [esp + 0x1c], 0x5c
lea esi, [esp + 0x1d]
lea edi, [esp + 0x121]
jne 0x41272d
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 0x41274a
cmp byte [ebp], 0x5c
jne 0x41274a
cmp byte [ebp + 1], 0x5c
jne 0x41274a
mov bl, 1
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [edi], 0x5c
jne 0x41276a
lea ecx, [esp + 0x124]
push edi
push ecx
call fcn.0040f5f0
add esp, 8
test eax, eax
je 0x412770
mov al, byte [edi]
test al, al
jne 0x4127df
test bl, bl
je 0x412786
mov al, byte [edi]
test al, al
je 0x4127ec
mov byte [esi], al
add esi, 1
add edi, 1
xor bl, bl
jmp 0x412750
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 0x4127ee
cmp byte [edi], 0
je 0x4127ee
cmp byte [edi + 1], 0
je 0x4127ee
add edi, 1
lea esi, [esp + 0x20]
jmp 0x412750
mov byte [esi], al
add esi, 1
add edi, 1
jmp 0x412750
xor esi, esi
lea edx, [esp + 0x32c]
push edx
call ebp
test esi, esi
pop ebx
je 0x41280e
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.00412c09
add esp, 0x424
ret