Function at 0x40c700
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43599e
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x45a6d0]
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 eax, ecx
lea esi, [eax + 0x108]
mov edx, 0xf
xor edi, edi
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], edi
mov dword [ebp - 0x134], eax
mov byte [esi], 0
lea ecx, [eax + 0x124]
mov dword [ebp - 4], edi
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], edi
mov dword [ebp - 0x138], ecx
mov byte [ecx], 0
lea ecx, [eax + 0x140]
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], edi
mov dword [ebp - 0x13c], ecx
mov byte [ecx], 0
push edi
push 0x1a
lea ebx, [eax + 4]
push ebx
push edi
mov byte [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebx - 1]
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40c790
mov ecx, dword [str.AnyunVPN3]
mov dword [eax], ecx
mov edx, dword [0x43c704]
mov dword [eax + 4], edx
mov cx, word [0x43c708]
mov word [eax + 8], cx
mov dl, byte [0x43c70a]
push ebx
mov byte [eax + 0xa], dl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40c7d0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40c7d3
mov ax, word [0x43bdb8]
mov word [edi], ax
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c7f0
sub eax, edx
push eax
push ebx
mov ecx, esi
call fcn.004028b2
push str.log.txt
mov ebx, 7
mov eax, esi
call fcn.00402786
cmp dword [esi + 0x14], 0x10
jb 0x40c81b
mov esi, dword [esi]
push 0x43c714
push esi
call fcn.0041ccd5
mov ecx, dword [ebp - 0x134]
xor ebx, ebx
push 0x103
lea edx, [ebp - 0x113]
push ebx
push edx
mov dword [ecx], eax
mov byte [ebp - 0x114], bl
call fcn.00426cd0
add esp, 0x14
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c867
mov esi, dword [ebp - 0x138]
sub eax, edx
push eax
lea ecx, [ebp - 0x114]
push ecx
mov ecx, esi
call fcn.004028b2
push 1
push 0x43c718
mov edx, esi
call fcn.004025ee
push 1
push 0x43bdb8
mov edx, esi
mov edi, eax
call fcn.004025ee
push edi
inc eax
push eax
push esi
lea esi, [ebp - 0x130]
call fcn.00402464
mov esi, eax
mov edi, dword [ebp - 0x138]
cmp edi, esi
je 0x40c90a
cmp dword [edi + 0x14], 0x10
jb 0x40c8cf
mov eax, dword [edi]
push eax
call fcn.0041bfc5
add esp, 4
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
cmp dword [esi + 0x14], 0x10
jae 0x40c8f2
mov eax, dword [esi + 0x10]
inc eax
push eax
push esi
push edi
call fcn.0041b8d0
add esp, 0xc
jmp 0x40c8f8
mov edx, dword [esi]
mov dword [edi], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0x14]
mov dword [edi + 0x14], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x11c], 0x10
jb 0x40c926
mov edx, dword [ebp - 0x130]
push edx
call fcn.0041bfc5
add esp, 4
push 0x43c71c
mov ebx, 3
mov eax, edi
call fcn.00402786
mov ecx, dword [ebp - 0x13c]
push 2
push 0x43c720
call fcn.004028b2
mov eax, dword [ebp - 0x134]
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.0041b4d6
mov esp, ebp
pop ebp
ret