Function at 0x40c311
Capabilities:
Get common file path

Disassembly:
push 0x3b4
mov eax, 0x5174fa
call fcn.004e63cc
mov edi, ecx
mov dword [ebp - 0x324], edi
xor eax, eax
mov dword [ebp - 0x330], edi
push 0xfffffffffffffffb
pop esi
mov ebx, eax
mov dword [ebp - 0x320], ebx
push 0xf
pop ecx
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x324], esi
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], ecx
mov byte [ebp - 0x24c], al
mov dword [ebp - 4], 1
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ecx
mov byte [ebp - 0x234], al
mov byte [ebp - 4], 2
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004e7ca0
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c628
lea eax, [ebp - 0x348]
mov byte [ebp - 0x21c], bl
mov dword [ebp - 0x328], eax
mov byte [ebp - 4], 3
mov ecx, eax
push dword [ebp - 0x21c]
push 0x1b
push str.CommUtilities.Report.Status
call fcn.00436132
push 2
pop eax
mov dword [ebp - 0x320], eax
mov byte [ebp - 4], al
mov ebx, eax
mov dword [ebp - 0x320], ebx
and ebx, 0xfffffffd
mov dword [ebp - 0x320], ebx
mov byte [ebp - 4], 4
add esp, 8
lea ecx, [ebp - 0x378]
push 0x570c74
call fcn.004267f9
mov byte [ebp - 4], 5
push ecx
push 0x570bc8
lea ecx, [ebp - 0x360]
call fcn.004267f9
mov byte [ebp - 4], 6
lea eax, [ebp - 0x218]
push ecx
push eax
lea ecx, [ebp - 0x3c0]
call fcn.0042800e
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x360]
push ecx
mov edx, eax
lea ecx, [ebp - 0x3a8]
call fcn.00405e0c
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x378]
push ecx
mov edx, eax
lea ecx, [ebp - 0x390]
call fcn.00405e0c
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x348]
push ecx
mov edx, eax
lea ecx, [ebp - 0x264]
call fcn.00405e0c
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x390]
call fcn.00421c43
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x3a8]
call fcn.00421c43
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x3c0]
call fcn.00421c43
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x360]
call fcn.00421c43
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x378]
call fcn.00421c43
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x348]
call fcn.00421c43
lea ecx, [ebp - 0x264]
call fcn.004066be
test al, al
je 0x40c619
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x575f08]
cmp eax, dword [ecx + 4]
jg 0x40c6f7
push 0xb8
lea eax, [ebp - 0x31c]
push 0
push eax
call fcn.004e7ca0
cmp dword [ebp - 0x250], 8
lea eax, [ebp - 0x264]
lea ecx, [ebp - 0x31c]
cmovae eax, dword [ebp - 0x264]
push eax
call fcn.0042f7f2
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x31c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x320], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x31c]
mov eax, dword [ebp - 0x31c]
mov eax, dword [eax + 4]
add ecx, eax
push ecx
lea eax, [ebp - 0x32c]
push eax
call fcn.0041eafe
lea ecx, [ebp - 0x32c]
call fcn.004049c0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], esi
push eax
lea ecx, [ebp - 0x31c]
call fcn.0042a491
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x21c], esi
call fcn.0042a491
mov esi, dword [ebp - 0x21c]
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x31c]
call fcn.00431c71
lea edx, [ebp - 0x234]
mov ecx, eax
call fcn.00431c71
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2ac]
call fcn.0041ea65
lea ecx, [ebp - 0x2ac]
call fcn.0041ebbf
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
call fcn.00421c43
and dword [edi + 0x10], 0
lea eax, [ebp - 0x234]
and dword [edi + 0x14], 0
mov ecx, edi
push eax
mov dword [ebp - 0x328], edi
call fcn.004221f8
mov byte [ebp - 4], 0x1e
lea ecx, [edi + 0x18]
and dword [ecx + 0x10], 0
lea eax, [ebp - 0x24c]
and dword [ecx + 0x14], 0
push eax
mov dword [ebp - 0x328], ecx
call fcn.004221f8
mov byte [ebp - 4], 0x21
mov dword [edi + 0x30], esi
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x324]
mov dword [edi + 0x34], eax
mov byte [ebp - 4], 2
or ebx, 1
mov dword [ebp - 0x320], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
cmp eax, 0x10
jb 0x40c6a4
inc eax
push eax
push dword [ebp - 0x234]
call fcn.0042ca26
pop ecx
pop ecx
xor ebx, ebx
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x238]
cmp ecx, 0x10
jb 0x40c6d9
inc ecx
push ecx
push dword [ebp - 0x24c]
call fcn.0042ca26
pop ecx
pop ecx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], 0xf
mov byte [ebp - 0x24c], bl
mov eax, edi
call fcn.004e6376
ret
push 0x575f08
call fcn.004e538e
cmp dword [0x575f08], 0xffffffff
pop ecx
jne 0x40c514
mov byte [ebp - 4], 0x17
xorps xmm0, xmm0
movlpd qword [0x575ed8], xmm0
call fcn.004d344a
push 0x18
mov esi, eax
call fcn.004e5464
pop ecx
mov dword [ebp - 0x328], eax
mov byte [ebp - 4], 0x18
mov ecx, eax
call fcn.0040bdfc
mov byte [ebp - 4], 0x17
push eax
push esi
call fcn.00428159
push 0x526524
call fcn.004e5808
mov byte [ebp - 4], 0x15
mov dword [esp], 0x575f08
call fcn.004e5344
pop ecx
push 0xfffffffffffffffb
pop esi
jmp 0x40c514