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

Disassembly:
push ebp
lea ebp, [esp - 0x670]
sub esp, 0x670
push 0xffffffffffffffff
push 0x4ed7e2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x53a00c]
xor eax, ebp
mov dword [ebp + 0x66c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 0x678]
push ecx
lea ecx, [ebp + 0x30]
call fcn.00403090
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x30]
call fcn.00402f40
test al, al
je 0x42280e
push 0x53d1dc
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x48], 0
call fcn.00403f00
mov byte [ebp - 4], 1
mov ecx, 0x53d1e0
call fcn.00402f40
test al, al
jne 0x422737
mov ecx, 0x53d1e0
call fcn.00403210
lea edx, [ebp + 0x30]
cmp edx, eax
je 0x422726
call fcn.00403210
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x42271a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0x30]
call fcn.00403340
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x48]
call fcn.00403f30
jmp 0x42280e
push 0x20c
lea eax, [ebp + 0x460]
push 0
push eax
call fcn.004c67e0
add esp, 0xc
lea eax, [ebp + 0x460]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4227fa
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x66a], ax
lea eax, [ebp + 0x4c]
push eax
call fcn.004c67e0
add esp, 0xc
lea eax, [ebp + 0x4c]
push 0x208
push eax
lea eax, [ebp + 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4227cd
test eax, eax
je 0x4227cd
add eax, eax
cmp eax, 0x412
jae 0x422a0e
xor ecx, ecx
mov word [ebp + eax + 0x4c], cx
lea eax, [ebp + 0x4c]
push eax
call fcn.00403860
add esp, 4
push eax
lea eax, [ebp + 0x4c]
jmp 0x4227e3
lea eax, [ebp + 0x460]
push eax
call fcn.00403860
add esp, 4
push eax
lea eax, [ebp + 0x460]
push eax
lea ecx, [ebp + 0x30]
call fcn.00403340
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x48]
call fcn.00403f30
jmp 0x42280e
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x48]
call fcn.00403f30
lea ecx, [ebp + 0x30]
call fcn.00402f60
mov eax, dword [0x53d72c]
test al, 1
jne 0x42283c
or eax, 1
mov dword [0x53d72c], eax
mov byte [ebp - 4], 2
push 0
call fcn.004c9b5d
push eax
call fcn.004c9bc0
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [0x53d72c]
test al, 2
jne 0x422868
or eax, 2
mov dword [0x53d72c], eax
mov byte [ebp - 4], 3
call fcn.004c9b9f
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [0x53d730], edx
mov byte [ebp - 4], 0
mov eax, dword [0x53d72c]
test al, 4
jne 0x422893
or eax, 4
mov dword [0x53d72c], eax
mov byte [ebp - 4], 4
call fcn.004c9b9f
cdq
mov ecx, 0x1388
idiv ecx
mov edi, edx
mov dword [0x53d734], edi
mov byte [ebp - 4], 0
jmp 0x422899
mov edi, dword [0x53d734]
lea ecx, [ebp + 0x18]
call fcn.00403070
mov byte [ebp - 4], 5
inc edi
push edi
push dword [0x53d730]
mov ecx, ebx
mov dword [0x53d734], edi
call fcn.00402f50
push eax
lea eax, [ebp + 0x18]
push str._sD._.03d._.03d
push eax
call fcn.0041f630
add esp, 0x14
lea ecx, [ebp + 0x18]
call fcn.00402f40
test al, al
jne 0x4229b0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004231f0
add esp, 0xc
mov byte [ebp - 4], 6
mov ecx, esi
push eax
call fcn.00403de0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00402de0
push 0
mov ecx, esi
call fcn.00402f50
push eax
call edi
test eax, eax
jne 0x4229fe
lea ecx, [ebp]
call fcn.00403070
mov byte [ebp - 4], 7
lea edx, [ebp]
mov ecx, esi
call fcn.00439d30
test al, al
je 0x422957
push 0
lea ecx, [ebp]
call fcn.00402f50
push eax
call edi
test eax, eax
jne 0x4229f2
mov byte [ebp - 4], 5
lea ecx, [ebp]
call fcn.00402de0
call ebx
cmp eax, 0xb7
jne 0x4229b0
mov eax, dword [0x53d734]
mov ecx, dword [0x53d730]
inc eax
inc ecx
mov dword [0x53d734], eax
push eax
mov dword [0x53d730], ecx
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00402f50
push eax
lea eax, [ebp + 0x18]
push str._sD._.03d._.03d
push eax
call fcn.0041f630
add esp, 0x14
lea ecx, [ebp + 0x18]
call fcn.00402f40
test al, al
je 0x4228e8
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00402de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.00402de0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x66c]
xor ecx, ebp
call fcn.004c4269
lea esp, [ebp + 0x670]
pop ebp
ret
mov byte [ebp - 4], 5
lea ecx, [ebp]
call fcn.00402de0
mov edx, 0x10
mov ecx, esi
call fcn.00422e50
mov bl, 1
jmp 0x4229b2
call fcn.004c49f2
int3