Function at 0x4130f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa1c
mov eax, dword [0x4668f4]
push ebx
push esi
push edi
mov esi, ecx
xor eax, ebp
mov dword [esp + 0xa24], eax
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x420], bl
mov ecx, 0x7f
lea edi, [esp + 0x421]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [esp + 0x420]
push edi
lea edi, [esi + 0x222c]
push edi
lea edi, [esp + 0x1b]
push edi
lea eax, [esi + 0x1e28]
push eax
lea ecx, [esi + 0x1c28]
push ecx
lea eax, [esi + 0x1628]
push eax
lea edx, [esi + 0x1a28]
push edx
lea ecx, [esi + 0x101c]
push ecx
lea eax, [esi + 0xe1c]
push eax
lea edx, [esi + 0x21c]
push edx
mov byte [esp + 0x3b], bl
call fcn.00406430
lea edi, [esi + 0x2029]
push str.__called_by_downloader
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
call fcn.00422370
add esp, 0x30
test eax, eax
je 0x41341e
lea eax, [esp + 0x620]
push eax
push 0x200
mov byte [esi + 0x2229], 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x200
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x628]
push edx
call fcn.004057c0
lea eax, [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4131d8
sub eax, edx
mov dword [esp + 0x1c], eax
je 0x413214
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4131f0
sub eax, edx
cmp byte [esp + eax + 0x1f], 0x5c
jne 0x413214
lea eax, [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x413207
sub eax, edx
mov byte [esp + eax + 0x1f], bl
push str.rsp1024hcmd.txt
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x228]
push 0x44c45c
push ecx
call fcn.004217f1
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x238]
push 0x200
push ecx
call fcn.00405b70
add esp, 0x20
test al, al
je 0x413407
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
mov byte [eax + edx], bl
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00412920
mov edx, dword [esp + 0xc]
push edx
call fcn.0043beef
lea eax, [esp + 0x224]
push eax
push str.Read_from_sCommandParameterFile__s
push 0x11a
mov ecx, dword [0x467980]
push str..SetupHandler.cpp
push ebx
push str.SetupHandler::InitializeSetup
push ecx
call fcn.0040ebc0
add esp, 0x20
cmp byte [esi + 0x2229], bl
je 0x4133f0
push str.TMServiceCache.txt
push 0x44c72c
lea eax, [esi + 0xe1c]
push eax
lea ecx, [esp + 0x2c]
push str._s_s_s
push ecx
mov byte [esi + 0x41c], bl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call fcn.004217f1
mov eax, dword [0x467980]
lea edx, [esp + 0x34]
push edx
push str.Refine_directory_by__s
push 0x143
push str..SetupHandler.cpp
push ebx
push str.SetupHandler::InitializeSetup
push eax
call fcn.0040ebc0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x58]
push 0x200
push eax
call fcn.00405b70
mov eax, dword [esp + 0x54]
add esp, 0x40
cmp eax, ebx
jbe 0x4133c3
mov ecx, dword [esp + 0x1c]
mov byte [ecx + eax], bl
mov edx, dword [esp + 0x14]
lea eax, [esi + 0x1a28]
push eax
push str.____USER_APPLICATION_DIRECTORY___
push str.___USER_APPLICATION_DIRECTORY___
push edx
call fcn.004054d0
mov eax, dword [esp + 0x24]
lea edi, [esi + 0x1e28]
push edi
push str.____DESKTOP_DIRECTORY___
push str.___DESKTOP_DIRECTORY___
push eax
call fcn.004054d0
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x1c28]
push eax
push str.____START_MENUE_DIRECTORY___
push str.___START_MENUE_DIRECTORY___
push ecx
call fcn.004054d0
mov edx, dword [0x467980]
lea eax, [esi + 0x1c28]
push eax
push edi
lea eax, [esi + 0x1a28]
push eax
push str.Refined_directories:__m_sUserApplicationDirectory___s__m_sDesktopDirectory___s__m_sStartMenuDirectory___s
push 0x14e
push str..SetupHandler.cpp
push ebx
push str.SetupHandler::InitializeSetup
push edx
call fcn.0040ebc0
mov eax, dword [esp + 0x68]
add esp, 0x54
push eax
call fcn.0043beef
add esp, 4
push 0x44c72c
lea eax, [esi + 0xe1c]
push eax
lea ecx, [esi + 0x121c]
push 0x44c45c
push ecx
call fcn.004217f1
add esp, 0x10
mov byte [esi + 0x222a], 1
mov byte [esi + 0x222b], bl
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa18]
xor ecx, ebp
call fcn.004205fd
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x220]
push edx
push str.failed_to_load__s
push 0x11e
jmp 0x4134cb
push str.__called_by_client_to_sync
push edi
call fcn.00422370
add esp, 8
test eax, eax
je 0x4132a4
push str.rsp1024hcmd.txt
push 0x44c72c
lea eax, [esi + 0xe1c]
push eax
lea ecx, [esp + 0x22c]
push str._s_s_s
push ecx
mov byte [esi + 0x2229], 1
call fcn.004217f1
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x23c]
push 0x200
push ecx
call fcn.00405b70
add esp, 0x24
test al, al
je 0x4134b9
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
mov byte [eax + edx], bl
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00412920
mov edx, dword [esp + 0xc]
push edx
call fcn.0043beef
lea eax, [esp + 0x224]
push eax
push str.Read_from_sCommandParameterFile___s
push 0x12e
jmp 0x41328a
lea edx, [esp + 0x220]
push edx
push str.failed_to_load__s
push 0x133
mov eax, dword [0x467980]
push str..SetupHandler.cpp
push ebx
push str.SetupHandler::InitializeSetup
push eax
call fcn.0040ebc0
mov ecx, dword [esp + 0xa40]
add esp, 0x1c
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004205fd
mov esp, ebp
pop ebp
ret