Function at 0x426477
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4434f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x5c
push eax
mov esi, ecx
mov dword [ebp - 0x210], eax
xor edi, edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4264b3
mov ebx, dword [ebp - 0x210]
cmp dword [esi + 0xc], edi
je 0x4264c4
push dword [esi + 0xc]
call fcn.00441807
pop ecx
mov dword [esi + 0xc], edi
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4264c9
sub ecx, edx
sar ecx, 1
push 2
pop edx
lea eax, [ecx + 1]
xor ecx, ecx
mov dword [ebp - 0x210], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044183a
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x426507
mov eax, 0x8007000e
jmp 0x4266ee
mov edx, dword [ebp - 0x210]
mov ecx, eax
push ebx
call fcn.0040c010
cmp dword [esi + 0x18], edi
jne 0x4266ec
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4266ec
cmp dword [esi + 0x18], edi
je 0x42654a
push dword [esi + 0x18]
call fcn.00441807
pop ecx
mov dword [esi + 0x18], edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push dword [esi + 0xc]
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.0040c045
lea ecx, [ebp - 0x20c]
push 2
lea edx, [ecx + 2]
pop ebx
mov ax, word [ecx]
add ecx, ebx
cmp ax, di
jne 0x426573
sub ecx, edx
sar ecx, 1
push 2
pop edx
lea ebx, [ecx + 1]
xor ecx, ecx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044183a
mov dword [esi + 0x18], eax
pop ecx
test eax, eax
je 0x4266ec
lea ecx, [ebp - 0x20c]
mov edx, ebx
push ecx
mov ecx, eax
call fcn.0040c010
mov ecx, dword [esi + 0x18]
call fcn.0041f47f
test eax, eax
jne 0x4266ec
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4266ec
cmp dword [esi + 0x18], edi
je 0x4265f1
push dword [esi + 0x18]
call fcn.00441807
pop ecx
mov dword [esi + 0x18], edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x20c]
push 2
lea edx, [ecx + 2]
pop ebx
mov ax, word [ecx]
add ecx, ebx
cmp ax, di
jne 0x42660a
sub ecx, edx
mov edx, dword [esi + 0xc]
sar ecx, 1
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, di
jne 0x42661e
sub edx, ebx
sar edx, 1
push 2
lea ebx, [edx + 0x41]
add ebx, ecx
xor ecx, ecx
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044183a
mov edx, eax
mov dword [esi + 0x18], edx
pop ecx
test edx, edx
je 0x4266ec
mov ecx, dword [0x444fb8]
push ecx
mov dword [esi + 0x48], 1
lea eax, [ecx + 1]
mov dword [0x444fb8], eax
lea eax, [ebp - 0x20c]
push eax
push 0x405e54
push ebx
push edx
jmp 0x4266b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x426689
push 0x57
pop eax
cmp eax, 0xb7
jne 0x4266cc
mov ecx, dword [0x444fb8]
cmp ecx, 0xffffffff
jae 0x4266cc
lea eax, [ecx + 1]
push ecx
mov dword [0x444fb8], eax
lea eax, [ebp - 0x20c]
push eax
push 0x405e54
push ebx
push dword [esi + 0x18]
call fcn.0040c0b5
add esp, 0x14
push edi
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42667c
jmp 0x4266d1
mov edi, 0x80004005
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4266e2
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ecx, dword [esi + 0x18]
push dword [esi + 0xc]
mov edx, ebx
call fcn.0041fb3c
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441b90
mov esp, ebp
pop ebp
ret 4