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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4739cd
mov eax, dword fs:[0]
push eax
sub esp, 0x308
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 ebx, edx
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x98
lea eax, [ebp - 0x2fc]
push 0
push eax
call fcn.0044f9d0
add esp, 4
lea ecx, [ebp - 0x2fc]
call fcn.00411010
lea edx, [ebp - 0x21c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2fc]
call fcn.00412ba0
mov edx, str.Vpingsdata_
mov ecx, eax
call fcn.00412ba0
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.00410f30
cmp dword [eax + 0x14], 8
jb 0x40f407
mov eax, dword [eax]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x300]
cmp eax, 8
jb 0x40f430
inc eax
lea ecx, [ebp - 0x314]
push eax
push dword [ebp - 0x314]
call fcn.00403140
mov edx, 0x4898cc
lea ecx, [ebp - 0x2fc]
call fcn.00412ba0
cmp dword [esi + 0x14], 8
jb 0x40f448
mov esi, dword [esi]
mov edx, esi
lea ecx, [ebp - 0x264]
call fcn.00421fa0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x264]
cmp dword [ebp - 0x250], 0x10
lea ecx, [ebp - 0x24c]
push dword [ebp - 0x254]
cmovae edx, dword [ebp - 0x264]
call fcn.00426a70
add esp, 4
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x23c]
test esi, esi
jne 0x40f4bc
mov dword [ebp - 0x224], esi
mov word [ebp + esi*2 - 0x234], ax
jmp 0x40f4ca
push 0x20
push esi
lea ecx, [ebp - 0x234]
call fcn.004222b0
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
push esi
cmovae ecx, dword [ebp - 0x234]
lea eax, [ebp - 0x24c]
cmp dword [ebp - 0x238], 0x10
push ecx
cmovae eax, dword [ebp - 0x24c]
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.00410f30
cmp dword [eax + 0x14], 8
jb 0x40f51a
mov eax, dword [eax]
cmp dword [ebp - 0x220], 8
lea ecx, [ebp - 0x234]
cmovae ecx, dword [ebp - 0x234]
cmp dword [ebx + 0x14], 8
jb 0x40f536
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x40f53e
mov edi, dword [edi]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
mov eax, dword [ebp - 0x300]
setne bl
cmp eax, 8
jb 0x40f56b
inc eax
lea ecx, [ebp - 0x314]
push eax
push dword [ebp - 0x314]
call fcn.00403140
mov eax, dword [ebp - 0x2fc]
lea ecx, [ebp - 0x2fc]
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 - 0x300], 7
push eax
push 0x488060
lea ecx, [ebp - 0x314]
mov dword [ebp - 0x304], 0
mov word [ebp - 0x314], ax
call fcn.00402db0
lea ecx, [ebp - 0x2f8]
mov byte [ebp - 4], 4
call fcn.00412250
push dword [ebp - 0x2bc]
cmp dword [ebp - 0x300], 8
lea eax, [ebp - 0x314]
push dword [ebp - 0x304]
cmovae eax, dword [ebp - 0x314]
lea ecx, [ebp - 0x2f8]
push eax
call fcn.004125f0
mov eax, dword [ebp - 0x300]
cmp eax, 8
jb 0x40f618
inc eax
lea ecx, [ebp - 0x314]
push eax
push dword [ebp - 0x314]
call fcn.00403140
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x40f636
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.00403140
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x224], 0
cmp eax, 0x10
jb 0x40f671
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.004031a0
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x238], 0xf
mov dword [ebp - 0x23c], 0
mov byte [ebp - 0x24c], 0
cmp eax, 0x10
jb 0x40f6aa
inc eax
lea ecx, [ebp - 0x264]
push eax
push dword [ebp - 0x264]
call fcn.004031a0
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x250], 0xf
mov dword [ebp - 0x254], 0
mov byte [ebp - 0x264], 0
call fcn.00410f50
lea eax, [ebp - 0x2ac]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004354f7
add esp, 4
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 - 0x14]
xor ecx, ebp
call fcn.004363c8
mov esp, ebp
pop ebp
ret