Function at 0x402bf0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x412ba6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x430
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x41f244
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x138]
call fcn.00405db0
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x34]
mov dword [esp + 0x44c], ebx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.SoftCampSDSSDSMan.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x13c]
call fcn.00406170
mov esi, 1
cmp eax, esi
jne 0x402d1e
mov edx, dword [esp + 0x10]
push edx
push str.GetFileSDSManVersion:___d_
push 0x418244
call fcn.00401710
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, esi
jbe 0x402cde
mov dword [ebp + 0x320], ebx
mov dword [ebp + 0x324], ebx
push str.CExecuteEnvironMent::CheckMustSelfExecute:_DSV2.0_More_than_Installed
jmp 0x402cf3
mov dword [ebp + 0x320], esi
mov dword [ebp + 0x324], 0xffffffff
push str.CExecuteEnvironMent::CheckMustSelfExecute:_DSV2.0_Less_than_Insatlled
push 0x418244
call fcn.00401710
add esp, 8
lea ecx, [esp + 0x134]
mov dword [esp + 0x448], 0xffffffff
call fcn.00405e40
mov eax, esi
jmp 0x402e2d
mov ecx, ebp
call fcn.00402e50
cmp eax, esi
jne 0x402d47
lea ecx, [esp + 0x134]
mov dword [esp + 0x448], 0xffffffff
call fcn.00405e40
mov eax, esi
jmp 0x402e2d
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x30]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.SoftCampDSSOMDSSOMMan.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.004123b0
lea eax, [esp + 0x30]
push ebx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x450], 1
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, 1
jne 0x402ddb
push str.CExecuteEnvironMent::CheckMustSelfExecute:_SOM_OneTimeInstalled
push 0x418244
call fcn.00401710
add esp, 8
mov dword [ebp + 0x324], 2
mov dword [ebp + 0x320], ebx
jmp 0x402e01
push str.CExecuteEnvironMent::CheckMustSelfExecute::_MustSelfExecuted
push 0x418244
call fcn.00401710
add esp, 8
mov dword [ebp + 0x324], 0xffffffff
mov dword [ebp + 0x320], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], bl
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x134]
mov dword [esp + 0x448], 0xffffffff
call fcn.00405e40
mov eax, 1
mov ecx, dword [esp + 0x440]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x43c
ret