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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x471381
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x2290
call fcn.004505e0
mov eax, dword [0x498068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x22a0], eax
mov esi, ecx
test eax, eax
je 0x4016bf
lea eax, [ebp - 0x250]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
jae 0x4016bf
test eax, eax
je 0x4016bf
push 0
call fcn.00454972
push eax
call fcn.004547bf
add esp, 8
xor edi, edi
nop
xor eax, eax
mov dword [ebp - 0x2270], 0
mov dword [ebp - 0x226c], 7
mov word [ebp - 0x2280], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2280]
cmp eax, esi
je 0x4014b3
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4014a4
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x2280]
push eax
call fcn.00401a50
push 0xa
xorps xmm0, xmm0
lea eax, [ebp - 0x3c]
push 0x14
push eax
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call fcn.0045479e
cdq
mov ecx, 0x7fff
idiv ecx
push edx
call fcn.004548be
lea eax, [ebp - 0x3c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4014e7
sub eax, edx
lea ecx, [ebp - 0x2280]
sar eax, 1
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00401b90
xor eax, eax
mov dword [ebp - 0x2288], 0
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x2284], 7
mov word [ebp - 0x2298], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401530
sub ecx, edx
lea eax, [ebp - 0x250]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2298]
call fcn.00401a50
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2280]
cmp dword [ebp - 0x226c], 8
lea ecx, [ebp - 0x2298]
push dword [ebp - 0x2270]
cmovae eax, dword [ebp - 0x2280]
push eax
call fcn.00401b90
push eax
lea ecx, [ebp - 0x2268]
call fcn.00401920
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x2284]
cmp edx, 8
jb 0x4015cc
mov ecx, dword [ebp - 0x2298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4015c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017fa
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 0x2288], 0
cmp dword [ebp - 0x2254], 8
mov word [ebp - 0x2298], ax
lea eax, [ebp - 0x2268]
cmovae eax, dword [ebp - 0x2268]
push 0
push eax
mov dword [ebp - 0x2284], 7
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4016df
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x2254]
cmp edx, 8
jb 0x401651
mov ecx, dword [ebp - 0x2268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401647
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017fa
push edx
push ecx
call fcn.0044f7c7
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x226c]
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 7
mov word [ebp - 0x2268], ax
cmp edx, 8
jb 0x4016b5
mov ecx, dword [ebp - 0x2280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4016ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017fa
push edx
push ecx
call fcn.0044f7c7
add esp, 8
inc edi
cmp edi, 0x32
jl 0x401470
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044f786
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x2000
lea eax, [ebp - 0x2250]
push 0
push eax
call fcn.00452050
add esp, 0xc
lea ecx, [ebp - 0x2250]
cmp dword [ebp - 0x2254], 8
lea eax, [ebp - 0x2268]
cmovae eax, dword [ebp - 0x2268]
push 0x1000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x401728
mov byte [ebp - 0x2299], al
jmp 0x40175a
lea edx, [ebp - 0x2250]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401731
mov ecx, dword [ebp - 0x22a0]
lea eax, [ebp - 0x2250]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.00401a50
mov byte [ebp - 0x2299], 1
mov edx, dword [ebp - 0x2254]
cmp edx, 8
jb 0x401796
mov ecx, dword [ebp - 0x2268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40178c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017fa
push edx
push ecx
call fcn.0044f7c7
add esp, 8
mov edx, dword [ebp - 0x226c]
xor eax, eax
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 7
mov word [ebp - 0x2268], ax
cmp edx, 8
jb 0x4017ef
mov ecx, dword [ebp - 0x2280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4017e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4017ff
push edx
push ecx
call fcn.0044f7c7
add esp, 8
mov al, byte [ebp - 0x2299]
jmp 0x4016c1
call fcn.00454bbf
call fcn.00454bbf
int3