Function at 0x411d80
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4507a0
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
test ebx, ebx
je 0x4121f3
cmp word [ebx], 0
je 0x4121f3
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
push ebx
mov dword [ebp - 4], 0
push dword [esi]
lea eax, [ebp - 0x28]
push str._s_s
push eax
call fcn.0040a530
mov edi, dword [ebp - 0x28]
add esp, 0x10
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esi + 4]
call fcn.0040d870
mov edx, dword [section..data]
mov esi, eax
mov ecx, section..data
mov dword [ebp - 0x30], esi
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.BFAppPlugin.exe
push esi
lea eax, [ebp - 0x10]
push str._s_s
push eax
mov byte [ebp - 4], 1
call fcn.0040a530
add esp, 0x10
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x24]
call fcn.0040f620
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x24]
lea eax, [ebp - 0x14]
push str._storemodedesktop__bflnk_s
push eax
call fcn.0040a530
mov eax, dword [section..data]
add esp, 0xc
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
cmp byte [ebp + 8], 0
jne 0x4120a9
mov dword [ebp - 0x20], eax
push ebx
lea eax, [ebp - 0x20]
push 0x459554
push eax
mov byte [ebp - 4], 4
call fcn.0040a530
mov eax, dword [section..data]
add esp, 0xc
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push ebx
lea eax, [ebp - 0x1c]
push 0x459560
push eax
mov byte [ebp - 4], 5
call fcn.0040a530
mov eax, dword [section..data]
add esp, 0xc
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push str.bfSingleApp_Uninst
push esi
push str._s_s__d.exe
push eax
call fcn.0040a530
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
add esp, 0x14
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
sub esp, 8
mov edx, edi
push dword [ebp - 0x14]
mov dword [ebp - 0x34], 0
push dword [ebp - 0x20]
push ecx
push esi
push dword [ebp - 0x1c]
mov ecx, ebx
call fcn.00408610
mov eax, dword [section..data]
add esp, 0x20
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 7
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push 0x45958c
push eax
call fcn.0040a530
mov eax, dword [section..data]
add esp, 0xc
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 8
push dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push 0x4595a0
push eax
call fcn.0040a530
mov eax, dword [section..data]
add esp, 0xc
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push str.bfAppStore_Uninst.exe
push esi
lea eax, [ebp + 8]
push str._s_s
push eax
mov byte [ebp - 4], 9
call fcn.0040a530
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [ebp - 0x38], eax
push dword [ebp + 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x411fdf
lea eax, [ebp - 0x38]
push eax
sub esp, 8
mov edx, edi
push 0
push esi
push ecx
push dword [ebp - 0x30]
mov ecx, dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.00408610
add esp, 0x20
mov byte [ebp - 4], 8
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x412000
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412020
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412040
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412060
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412080
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41218f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41218f
mov dword [ebp + 8], eax
push str.bfAppStore.exe
push esi
lea eax, [ebp + 8]
push str._s_s
push eax
mov byte [ebp - 4], 0xa
call fcn.0040a530
mov ebx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
sub esp, 8
mov edx, edi
push dword [ebp - 0x14]
mov dword [ebp - 0x34], 0
push 0x4595d0
push ecx
mov ecx, dword [ebp - 0x10]
push esi
push 0x4595e0
mov dword [ebp - 0x38], ebx
call fcn.00408610
mov eax, dword [section..data]
add esp, 0x20
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x10], eax
push str.bfAppStore_Uninst.exe
push esi
lea eax, [ebp + 0x10]
push str._s_s
push eax
mov byte [ebp - 4], 0xb
call fcn.0040a530
mov esi, dword [ebp + 0x10]
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
sub esp, 8
mov edx, edi
push 0
push 0x4595f4
push ecx
push dword [ebp - 0x30]
mov ecx, dword [ebp + 0x14]
push 0x459608
mov dword [ebp - 0x38], esi
call fcn.00408610
lea edx, [esi - 0x10]
or esi, 0xffffffff
add esp, 0x20
mov byte [ebp - 4], 0xa
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41216f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [ebx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41218c
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4121af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [ebx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4121d5
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4121f3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10