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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e12b
mov eax, dword fs:[0]
push eax
sub esp, 0xa5c
mov eax, dword [0x4672b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x41e185
test edi, edi
je 0x41e185
xor eax, eax
cmp ax, word [esi]
je 0x41e185
push edi
push esi
push str.InCreateDirectory_Start_n__lpszFullPath_:__s_n__lpszBaseFolderPath___s_n
call fcn.00414760
push esi
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0042f9f7
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x420]
add esp, 0x18
push eax
call ebx
push edi
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0042f9f7
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
call ebx
cmp word [ebp - 0x628], 0
je 0x41e1a3
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e140
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00437d40
add esp, 0xc
test eax, eax
je 0x41e1a3
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
push str.InCreateDirectory_FAILED_n__szFullPath_:__s_n__szBasePath___s_n
call fcn.00414760
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x628]
push eax
call fcn.0041f6d0
add esp, 4
lea eax, [ebp - 0xa38]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0042a3f0
mov ebx, dword [ebp - 0x41e]
lea esi, [ebp - 0x420]
mov di, word [ebp - 0x420]
lea ecx, [ebp - 0x218]
add esp, 0xc
cmp bx, 0x3a
jne 0x41e23c
cmp word [ebp - 0x41c], 0x5c
lea esi, [ebp - 0x41c]
mov eax, 0x3a
mov word [ebp - 0x218], di
mov word [ebp - 0x216], ax
lea ecx, [ebp - 0x214]
jne 0x41e272
mov eax, 0x5c
lea esi, [ebp - 0x41a]
mov word [ebp - 0x214], ax
lea ecx, [ebp - 0x212]
jmp 0x41e272
cmp di, 0x5c
jne 0x41e272
mov eax, 0x5c
lea esi, [ebp - 0x41e]
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x216]
cmp bx, ax
jne 0x41e272
lea esi, [ebp - 0x41c]
mov word [ebp - 0x216], ax
lea ecx, [ebp - 0x214]
lea edx, [ebp - 0x420]
mov byte [ebp - 0xa58], 0
lea eax, [edx + 2]
mov dword [ebp - 0xa5c], eax
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41e290
sub edx, dword [ebp - 0xa5c]
mov eax, 1
sar edx, 1
cmp edx, 3
mov edx, dword [ebp - 0xa58]
jbe 0x41e2c8
cmp di, 0x5c
jne 0x41e2c8
cmp bx, di
movzx edx, dl
cmove edx, eax
mov dword [ebp - 0xa58], edx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [esi]
cmp ax, 0x5c
je 0x41e2ed
test ax, ax
je 0x41e2ed
add esi, 2
mov word [ecx], ax
add ecx, 2
jmp 0x41e2d4
test dl, dl
je 0x41e30d
test ax, ax
je 0x41e561
mov word [ecx], ax
add esi, 2
add ecx, 2
xor dl, dl
mov dword [ebp - 0xa58], edx
jmp 0x41e2d4
xor eax, eax
mov dword [ebp - 0xa68], 0xc
mov word [ecx], ax
lea ecx, [ebp - 0x420]
mov dword [ebp - 0xa64], eax
lea edx, [ecx + 2]
mov dword [ebp - 0xa60], 1
mov byte [ebp - 0xa51], al
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e340
sub ecx, edx
sar ecx, 1
cmp ecx, 0xf8
jbe 0x41e49b
xor eax, eax
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 0
mov dword [ebp - 0xa40], 0
mov dword [ebp - 0xa3c], 7
mov word [ebp - 0xa50], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41e41d
lea eax, [ebp - 0x830]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41e565
lea eax, [ebp - 0x830]
push eax
call ebx
test eax, eax
je 0x41e565
push 0x451e2c
lea ecx, [ebp - 0xa50]
call fcn.00408a60
lea ecx, [ebp - 0x830]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e3e4
sub ecx, edx
lea eax, [ebp - 0x830]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa50]
call fcn.004088e0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e410
jmp 0x41e441
push 0x451e2c
lea ecx, [ebp - 0xa50]
call fcn.00408a60
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e436
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa50]
call fcn.004088e0
cmp dword [ebp - 0xa3c], 8
lea ecx, [ebp - 0xa68]
lea eax, [ebp - 0xa50]
cmovae eax, dword [ebp - 0xa50]
push ecx
push eax
call edi
movzx ebx, byte [ebp - 0xa51]
test eax, eax
mov eax, 1
cmovne ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa50]
call fcn.00403400
jmp 0x41e4bc
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
movzx ebx, byte [ebp - 0xa51]
test eax, eax
mov eax, 1
cmovne ebx, eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x41e579
cmp word [ebp - 0x628], 0
je 0x41e530
lea eax, [ebp - 0x830]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
test bl, bl
jne 0x41e50c
test dword [0x46a120], 0x400
je 0x41e530
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x830]
push eax
call ebx
test eax, eax
je 0x41e579
lea eax, [ebp - 0x830]
push eax
call fcn.00407600
add esp, 4
jmp 0x41e536
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp word [esi], 0
je 0x41e579
movzx eax, word [esi + 2]
add esi, 2
mov edx, eax
test ax, ax
je 0x41e579
mov edx, dword [ebp - 0xa58]
lea ecx, [ebp - 0x218]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x41e2d7
xor edi, edi
jmp 0x41e579
xor edi, edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa50]
call fcn.00403400
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test edi, edi
je 0x41e59d
push 0
lea eax, [ebp - 0x420]
push eax
push 5
push 8
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, edi
jmp 0x41e187