Function at 0x40d240
Capabilities:
Check if file exists
Create directory
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x450478
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
call fcn.0040d7e0
mov ecx, edi
mov ebx, eax
call fcn.0040d870
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40d28c
mov dl, 1
mov ecx, ebx
call fcn.0040cea0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d2d1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d2c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40d2d1
mov ecx, ebx
call fcn.00412ee0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40d2d1
cmp dword [0x467194], 6
jb 0x40d2d1
push ecx
mov ecx, ebx
call fcn.004134a0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d316
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d305
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40d316
mov ecx, esi
call fcn.00412ee0
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40d316
cmp dword [0x467194], 6
jb 0x40d316
push ecx
mov ecx, esi
call fcn.004134a0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d688
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d688
xorps xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x20], xmm0
test ebx, ebx
je 0x40d660
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.0040d6b0
test eax, eax
je 0x40d660
cmp dword [esp + 0x34], 0
ja 0x40d371
cmp dword [esp + 0x30], 0x64
jb 0x40d660
test esi, esi
je 0x40d660
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0040d6b0
test eax, eax
je 0x40d660
cmp dword [esp + 0x24], 0
ja 0x40d39f
cmp dword [esp + 0x20], 0x64
jb 0x40d660
mov ecx, esi
call fcn.0040bb40
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x30], eax
push str.Archive.7z
push ebx
lea eax, [esp + 0x38]
push str._s_s
push eax
mov dword [esp + 0x54], 0
call fcn.0040a530
mov esi, dword [esp + 0x40]
add esp, 0x10
mov ecx, esi
call fcn.00412ea0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RESOURCE_DATA
push 0x8a
push eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40d63a
mov edx, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.004130c0
test eax, eax
je 0x40d63a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d641
push ebx
lea ecx, [esp + 0x30]
call fcn.0040e700
push 0x457f50
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
call fcn.0040e790
push esi
lea ecx, [esp + 0x24]
call fcn.0040e700
mov byte [esp + 0x44], 2
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.00408220
add esp, 4
lea ecx, [esp + 0x20]
mov edi, eax
mov byte [esp + 0x44], 1
call fcn.00401fb0
mov ecx, esi
call fcn.00412ea0
test edi, edi
je 0x40d4b6
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
mov dword [edi + 0x34], 2
xor bl, bl
call fcn.00401fb0
lea ecx, [esp + 0x30]
call fcn.00401fb0
mov al, bl
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
push str.bfSingleApp_Uninst
push ebx
lea eax, [esp + 0x28]
push str._s_s.exe
push eax
mov byte [esp + 0x54], 3
call fcn.0040a530
mov esi, dword [esp + 0x30]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d5f0
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
push 4
push 0x458ce0
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 4
call fcn.00401ea0
mov edi, dword [esp + 0x10]
push 0x60
push str.bfSingleApp_Uninst
add edi, 0xc
push str._s__d.exe
push edi
call fcn.0040a530
mov eax, dword [section..data]
add esp, 0x10
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x44], 5
push dword [edi]
lea eax, [esp + 0x1c]
push ebx
push str._s_s
push eax
call fcn.0040a530
mov edx, dword [esp + 0x28]
add esp, 0x10
mov ecx, esi
call fcn.00412e50
mov esi, dword [esp + 0x10]
push 0x60
add esi, 0x10
push str.app__d.ini
push esi
call fcn.0040a530
mov eax, dword [section..data]
add esp, 0xc
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x44], 6
push dword [esi]
lea eax, [esp + 0x18]
push ebx
push str._s_s
push eax
call fcn.0040a530
add esp, 0x10
push dword [esp + 0x14]
push dword [esp + 0x20]
push str.Name
push 0x4589d4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [esp + 0x14]
call fcn.00401fb0
lea ecx, [esp + 0x18]
call fcn.00401fb0
lea ecx, [esp + 0x1c]
call fcn.00401fb0
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call fcn.00401fb0
mov ebx, dword [esp + 0x10]
mov ecx, ebx
call fcn.0040d7e0
push eax
lea ecx, [ebx + 0x18]
call fcn.00409720
lea ecx, [esp + 0x2c]
mov bl, 1
call fcn.00401fb0
lea ecx, [esp + 0x30]
call fcn.00401fb0
mov al, bl
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x34], 2
lea ecx, [esp + 0x30]
xor bl, bl
call fcn.00401fb0
mov al, bl
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x458928
push 0x458930
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3c]
mov dword [edi + 0x34], 1
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret