Function at 0x4127e0
Capabilities:
Check if file exists
Create directory
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [0x4f9008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x61c]
mov ebx, ecx
push 0
push eax
call fcn.004773d0
push 0x208
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.004773d0
push 0x208
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.004773d0
push 0x208
lea eax, [ebp - 0xc34]
push 0
push eax
call fcn.004773d0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004773d0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004773d0
add esp, 0x48
lea eax, [ebp - 0x414]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x414]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x412890
mov ecx, 6
lea eax, [ebp - 0x414]
mov esi, str.ClodlySoft_
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4128c9
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ecx, ecx
nop dword [eax + eax]
movzx eax, word [ebp + ecx - 0x414]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x20e], ax
test ax, ax
jne 0x4128d0
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4128f1
mov ecx, 7
lea eax, [ebp - 0x20c]
mov esi, str.cloudysoft.ini
rep movsd dword es:[edi], dword [esi]
push eax
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0x4d2b9c
push str.OID1
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.Globals
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x824]
push eax
push 0x4d2b9c
push str.OID2
push str.Globals
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0x4d2b9c
push str.OID3
push str.Globals
call esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0xc34]
push eax
push 0x4d2b9c
push str.OID4
push str.Globals
call esi
lea edi, [ebp - 0x61c]
lea ecx, [edi + 2]
nop word [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4129b0
sub edi, ecx
lea ecx, [ebp - 0x824]
sar edi, 1
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4129d0
sub ecx, edx
lea esi, [ebp - 0xa2c]
sar ecx, 1
lea edx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4129f0
sub esi, edx
lea edx, [ebp - 0xc34]
lea eax, [edx + 2]
sar esi, 1
mov dword [ebp - 0xc38], eax
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x412a10
sub edx, dword [ebp - 0xc38]
sar edx, 1
test edi, edi
je 0x412ad7
test ecx, ecx
je 0x412ad7
test esi, esi
je 0x412ad7
test edx, edx
je 0x412ad7
mov edx, dword [ebx]
lea ecx, [ebp - 0x61c]
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x412a50
mov ecx, dword [ebx]
lea edx, [ebp - 0x824]
add ecx, 0x208
nop
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x412a70
mov ecx, dword [ebx]
lea edx, [ebp - 0xa2c]
add ecx, 0x410
nop
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x412a90
mov ecx, dword [ebx]
lea edx, [ebp - 0xc34]
add ecx, 0x618
nop
movzx eax, word [edx]
lea edx, [edx + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x412ab0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475880
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475880
mov esp, ebp
pop ebp
ret