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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4424f4]
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 0x4260b2
mov ebx, dword [ebp - 0x210]
cmp dword [esi + 0xc], edi
je 0x4260c3
push dword [esi + 0xc]
call fcn.00440db7
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 0x4260c8
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.00440dea
mov dword [esi + 0xc], eax
pop ecx
test eax, eax
jne 0x426106
mov eax, 0x8007000e
jmp 0x4262ed
mov edx, dword [ebp - 0x210]
mov ecx, eax
push ebx
call fcn.0040c040
cmp dword [esi + 0x18], edi
jne 0x4262eb
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4262eb
cmp dword [esi + 0x18], edi
je 0x426149
push dword [esi + 0x18]
call fcn.00440db7
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.0040c075
lea ecx, [ebp - 0x20c]
push 2
lea edx, [ecx + 2]
pop ebx
mov ax, word [ecx]
add ecx, ebx
cmp ax, di
jne 0x426172
sub ecx, edx
sar ecx, 1
push 2
pop edx
lea ebx, [ecx + 1]
xor ecx, ecx
mov eax, ebx
ret
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00440dea
mov dword [esi + 0x18], eax
pop ecx
test eax, eax
je 0x4262eb
lea ecx, [ebp - 0x20c]
mov edx, ebx
push ecx
mov ecx, eax
call fcn.0040c040
mov ecx, dword [esi + 0x18]
call fcn.0041f21e
test eax, eax
jne 0x4262eb
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4262eb
cmp dword [esi + 0x18], edi
je 0x4261f0
push dword [esi + 0x18]
call fcn.00440db7
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 0x426209
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 0x42621d
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.00440dea
mov edx, eax
mov dword [esi + 0x18], edx
pop ecx
test edx, edx
je 0x4262eb
mov ecx, dword [0x443fb8]
push ecx
mov dword [esi + 0x48], 1
lea eax, [ecx + 1]
mov dword [0x443fb8], eax
lea eax, [ebp - 0x20c]
push eax
push 0x405e64
push ebx
push edx
jmp 0x4262b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x426288
push 0x57
pop eax
cmp eax, 0xb7
jne 0x4262cb
mov ecx, dword [0x443fb8]
cmp ecx, 0xffffffff
jae 0x4262cb
lea eax, [ecx + 1]
push ecx
mov dword [0x443fb8], eax
lea eax, [ebp - 0x20c]
push eax
push 0x405e64
push ebx
push dword [esi + 0x18]
call fcn.0040c0e1
add esp, 0x14
push edi
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42627b
jmp 0x4262d0
mov edi, 0x80004005
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4262e1
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ecx, dword [esi + 0x18]
push dword [esi + 0xc]
mov edx, ebx
call fcn.0040c075
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441130
leave
ret 4