Function at 0x40f770
Capabilities:
Create directory
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473a64
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x498070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x348], edx
mov dword [ebp - 0x34c], ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x14], 8
jb 0x40f7ba
mov edx, dword [ebx]
jmp 0x40f7bc
mov edx, ebx
lea ecx, [ebp - 0x2ac]
call fcn.00421fa0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2ac]
cmp dword [ebp - 0x298], 0x10
lea ecx, [ebp - 0x27c]
push dword [ebp - 0x29c]
cmovae edx, dword [ebp - 0x2ac]
call fcn.00426a70
add esp, 4
xor eax, eax
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x254], 0
mov word [ebp - 0x264], ax
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x26c]
test edi, edi
jne 0x40f831
mov dword [ebp - 0x254], edi
mov word [ebp + edi*2 - 0x264], ax
jmp 0x40f83f
push 0x20
push edi
lea ecx, [ebp - 0x264]
call fcn.004222b0
cmp dword [ebp - 0x250], 8
lea ecx, [ebp - 0x264]
push edi
cmovae ecx, dword [ebp - 0x264]
lea eax, [ebp - 0x27c]
cmp dword [ebp - 0x268], 0x10
push ecx
cmovae eax, dword [ebp - 0x27c]
push edi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0x1c
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x98
lea eax, [ebp - 0x344]
push 0
push eax
call fcn.0044f9d0
add esp, 4
lea ecx, [ebp - 0x344]
call fcn.00411010
lea edx, [ebp - 0x21c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x344]
call fcn.00412ba0
mov edx, str.Vpingsdata_
mov ecx, eax
call fcn.00412ba0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x344]
call fcn.00410f30
cmp dword [eax + 0x14], 8
jb 0x40f8e4
mov eax, dword [eax]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x40f90d
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.00403140
mov edx, 0x4898cc
lea ecx, [ebp - 0x344]
call fcn.00412ba0
xor ecx, ecx
mov eax, 0x7e8
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436904
add esp, 4
lea ecx, [ebp - 0x344]
mov edi, eax
lea eax, [ebp - 0x234]
push eax
call fcn.00410f30
mov edx, eax
cmp dword [edx + 0x14], 8
jb 0x40f959
mov edx, dword [edx]
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
mov ecx, dword [ebp - 0x348]
cmovae eax, dword [ebp - 0x264]
mov dword [ebp - 0x350], eax
cmp dword [ecx + 0x14], 8
jb 0x40f981
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x34c]
cmp dword [eax + 0x14], 8
jb 0x40f98f
mov eax, dword [eax]
push edx
push 0x7e8
push edi
push dword [ebp - 0x350]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x348], eax
cmp ecx, 8
jb 0x40f9c8
inc ecx
push ecx
push dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call fcn.00403140
mov eax, dword [ebp - 0x344]
lea ecx, [ebp - 0x344]
xor edx, edx
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.00404360
xor eax, eax
mov dword [ebp - 0x220], 7
push eax
push 0x488060
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
call fcn.00402db0
lea ecx, [ebp - 0x340]
mov byte [ebp - 4], 4
call fcn.00412250
push dword [ebp - 0x304]
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
push dword [ebp - 0x224]
cmovae eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x340]
push eax
call fcn.004125f0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x40fa79
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.00403140
xor eax, eax
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], 0
mov word [ebp - 0x294], ax
cmp word [edi], ax
jne 0x40fa9f
xor ecx, ecx
jmp 0x40fab3
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40faa4
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x294]
call fcn.00402db0
push 2
push edi
call fcn.004368d3
add esp, 8
mov dword [ebp - 0x238], 0xf
mov dword [ebp - 0x23c], 0
mov byte [ebp - 0x24c], 0
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x284]
test edi, edi
jne 0x40fb04
mov dword [ebp - 0x23c], edi
mov byte [ebp + edi - 0x24c], 0
jmp 0x40fb12
push 0x20
push edi
lea ecx, [ebp - 0x24c]
call fcn.00404590
cmp dword [ebp - 0x238], 0x10
lea ecx, [ebp - 0x24c]
push 0
cmovae ecx, dword [ebp - 0x24c]
lea eax, [ebp - 0x294]
cmp dword [ebp - 0x280], 8
push 0
cmovae eax, dword [ebp - 0x294]
push edi
push ecx
push edi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x238], 0x10
lea eax, [ebp - 0x24c]
push dword [ebp - 0x23c]
cmovae eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x27c]
cmp dword [ebp - 0x268], 0x10
mov edx, dword [ebp - 0x26c]
cmovae ecx, dword [ebp - 0x27c]
push eax
call fcn.00406b70
add esp, 8
test eax, eax
jne 0x40fba5
cmp esi, ebx
je 0x40fc55
push 0xffffffffffffffff
push eax
push ebx
mov ecx, esi
call fcn.004031f0
jmp 0x40fc55
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x234]
call fcn.00427080
mov byte [ebp - 4], 7
lea edx, [ebp - 0x234]
cmp dword [ebp - 0x220], 0x10
lea ecx, [ebp - 0x368]
cmovae edx, dword [ebp - 0x234]
call fcn.00421ee0
mov edi, eax
cmp esi, edi
je 0x40fc19
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40fbf2
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00403140
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40fc0a
mov eax, dword [esi]
jmp 0x40fc0c
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00408240
mov eax, dword [ebp - 0x354]
cmp eax, 8
jb 0x40fc37
inc eax
lea ecx, [ebp - 0x368]
push eax
push dword [ebp - 0x368]
call fcn.00403140
mov eax, dword [ebp - 0x220]
cmp eax, 0x10
jb 0x40fc55
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.004031a0
mov eax, dword [ebp - 0x238]
cmp eax, 0x10
jb 0x40fc73
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.004031a0
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x238], 0xf
mov dword [ebp - 0x23c], 0
mov byte [ebp - 0x24c], 0
cmp eax, 8
jb 0x40fcac
inc eax
lea ecx, [ebp - 0x294]
push eax
push dword [ebp - 0x294]
call fcn.00403140
xor eax, eax
mov dword [ebp - 0x280], 7
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 0x284], 0
mov word [ebp - 0x294], ax
call fcn.00410f50
lea eax, [ebp - 0x2f4]
mov byte [ebp - 4], 9
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004354f7
mov eax, dword [ebp - 0x250]
add esp, 4
cmp eax, 8
jb 0x40fd0f
inc eax
lea ecx, [ebp - 0x264]
push eax
push dword [ebp - 0x264]
call fcn.00403140
xor eax, eax
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x254], 0
cmp eax, 0x10
jb 0x40fd4a
inc eax
lea ecx, [ebp - 0x27c]
push eax
push dword [ebp - 0x27c]
call fcn.004031a0
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x268], 0xf
mov dword [ebp - 0x26c], 0
mov byte [ebp - 0x27c], 0
cmp eax, 0x10
jb 0x40fd83
inc eax
lea ecx, [ebp - 0x2ac]
push eax
push dword [ebp - 0x2ac]
call fcn.004031a0
mov eax, dword [ebp - 0x348]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004363c8
mov esp, ebp
pop ebp
ret