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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c404
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x453144]
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 edi, edx
mov ebx, ecx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x40be49
push 0x44c208
call fcn.0040c800
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40c164
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x40c164
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00419520
add esp, 0xc
lea eax, [ebp - 0x21c]
push 1
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.004018e0
mov ecx, eax
test ecx, ecx
je 0x40c182
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x21c]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x220]
push str._s_s
push eax
call fcn.004032f0
mov esi, dword [ebp - 0x220]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c0d2
test edi, edi
je 0x40c0d2
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call fcn.00417780
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x40c0d2
push 0x51
push str.d:jenkins.jenkinsworkspaceweiduangamewdgameboxwdgameboxuninst_srcutils.cc
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0xf
mov byte [ebp - 0x254], 0
call fcn.00407580
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x23c]
push 3
push 0x44d57c
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0xf
mov byte [ebp - 0x23c], 0
call fcn.00407580
mov byte [ebp - 4], 3
call fcn.00417780
mov ebx, eax
lea ecx, [ebp - 0x2ec]
push 0x10e
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00404d90
mov edi, eax
mov edx, str.GetStartMenuDir__Create_directory_:
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00404c20
test esi, esi
mov ecx, str._null_
cmovne ecx, esi
push ecx
push edi
call fcn.00407bf0
mov eax, dword [ebx]
add esp, 8
mov ecx, ebx
push edi
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x2ec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2f0], eax
lea ecx, [ebp - 0x2e8]
call fcn.00406b50
mov eax, dword [ebp - 0x2ec]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x2ec]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2f0], eax
lea eax, [ebp - 0x29c]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00411d35
mov byte [ebp - 4], 2
add esp, 4
mov edx, dword [ebp - 0x228]
cmp edx, 0x10
jb 0x40c058
mov ecx, dword [ebp - 0x23c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c04e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c18c
push edx
push ecx
call fcn.004155ab
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0xf
mov byte [ebp - 0x23c], 0
cmp edx, 0x10
jb 0x40c0b1
mov ecx, dword [ebp - 0x254]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c0a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c191
push edx
push ecx
call fcn.004155ab
add esp, 8
mov ebx, dword [ebp - 0x224]
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0xf
mov byte [ebp - 0x254], 0
mov ecx, dword [esi - 0x10]
add esi, 0xfffffff0
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x40c0f3
cmp ecx, dword [esi]
jne 0x40c0f3
mov edi, esi
lock inc dword [eax]
jmp 0x40c123
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov edi, eax
test edi, edi
je 0x40c196
mov eax, dword [esi + 4]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
inc eax
lea edx, [eax + eax]
push edx
lea eax, [esi + 0x10]
push eax
call fcn.00401580
add esp, 8
lea eax, [edi + 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov dword [ebx], eax
mov eax, edi
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40c145
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40c164
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.00415060
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401660
call fcn.0041e989
call fcn.0041e989
call fcn.00403150
int3