Function at 0x41f180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x454eb9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc88
mov eax, dword [0x46c3ac]
push ebx
push esi
push edi
push str.ItemImeName
mov dword [esp + 0xc90], eax
mov esi, ecx
call fcn.0041e570
mov edi, eax
push str.ItemCheckExe
mov ecx, esi
mov dword [esp + 0x14], edi
call fcn.0041e570
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x34], eax
je 0x41f474
xor eax, eax
mov word [esp + 0x878], bx
mov ecx, 0x81
lea edi, [esp + 0x87a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0x468], bx
mov ecx, 0x81
lea edi, [esp + 0x46a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [esp + 0xa80], bx
mov ecx, 0x81
lea edi, [esp + 0xa82]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x87c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x878]
push ecx
lea edx, [esp + 0x46c]
push edx
call fcn.004323d1
lea eax, [esp + 0x470]
push 0x4570f8
push eax
call fcn.004323d1
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x47c]
push edx
call fcn.004323d1
lea eax, [esp + 0x480]
push 0x457efc
push eax
call fcn.004323d1
lea ecx, [esp + 0x488]
push ecx
lea edx, [esp + 0xaa4]
push edx
call fcn.004323fb
lea eax, [esp + 0xaa8]
push 0x457ef8
push eax
call fcn.004323d1
lea ecx, [esp + 0x498]
push ecx
lea edx, [esp + 0x8c]
push edx
call fcn.004323fb
mov ecx, dword [0x46d488]
add esp, 0x38
call fcn.0040c740
mov ecx, eax
call fcn.0040fe60
test eax, eax
je 0x41f3fc
mov ecx, dword [0x46d488]
lea eax, [esp + 0x38]
push eax
call fcn.0040c740
mov ecx, eax
call fcn.0040fec0
push ecx
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00403a80
mov ecx, dword [0x46d488]
mov dword [esp + 0xca0], 0xffffffff
call fcn.0040c710
mov ecx, eax
call fcn.0040bcc0
mov edi, eax
cmp edi, ebx
je 0x41f3e3
xor eax, eax
mov word [esp + 0x670], bx
mov ecx, 0x81
lea edi, [esp + 0x672]
rep stosd dword es:[edi], eax
mov ecx, dword [0x46d488]
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x674]
push eax
call fcn.0040c740
mov ecx, eax
call fcn.0040fe90
lea ecx, [esp + 0x670]
push 0x4570f8
push ecx
call fcn.004323d1
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x67c]
push eax
call fcn.004323d1
lea ecx, [esp + 0x680]
push 0x457efc
push ecx
call fcn.004323d1
lea edx, [esp + 0x688]
push edx
lea eax, [esp + 0x74]
push eax
call fcn.004323fb
add esp, 0x1c
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00403a80
mov ecx, dword [0x46d488]
mov dword [esp + 0xca0], 0xffffffff
call fcn.0040c710
mov ecx, eax
call fcn.0040bcc0
mov edi, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [0x46d488]
push eax
call fcn.0040c740
mov ecx, eax
call fcn.0040fee0
jmp 0x41f42c
push ecx
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00403a80
mov ecx, dword [0x46d488]
mov dword [esp + 0xca0], 0xffffffff
call fcn.0040c710
mov ecx, eax
call fcn.0040bcc0
mov edi, eax
cmp edi, ebx
je 0x41f4d8
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x41f4d0
push eax
mov eax, dword [0x46d488]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x278]
push edx
lea eax, [esp + 0x60]
push 0x45706c
push eax
call fcn.004322a4
add esp, 0xc
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00403a80
jmp 0x41f4b1
cmp eax, ebx
jne 0x41f47f
xor eax, eax
jmp 0x41f8aa
push eax
mov eax, dword [0x46d488]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x278]
push edx
lea eax, [esp + 0x60]
push 0x45706c
push eax
call fcn.004322a4
add esp, 0xc
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00403a80
mov ecx, dword [0x46d488]
mov dword [esp + 0xca0], 0xffffffff
call fcn.0040c710
mov ecx, eax
call fcn.0040bcc0
mov edi, eax
cmp edi, ebx
jne 0x41f6ba
mov edi, 7
push str.ItemExeUser
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.00432636
add esp, 4
push eax
push str.ItemExeUser
lea ecx, [esp + 0x1c]
call fcn.00404f80
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xca0], 5
call dword [eax + 0x10]
cmp dword [esp + 0x2c], 8
mov dword [esp + 0xc9c], 0xffffffff
jb 0x41f53d
mov eax, dword [esp + 0x18]
push eax
call fcn.0044b775
add esp, 4
push str.ItemExeUser
mov ecx, esi
call fcn.0041e700
test eax, eax
push str.true
mov ecx, esi
push str.ItemExeUser
je 0x41f560
call fcn.0041e3b0
jmp 0x41f565
call fcn.0041e2d0
mov ecx, dword [0x46d488]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x278]
push eax
lea ecx, [esp + 0x264]
push str._sInstTemp_
push ecx
call fcn.004322a4
push str.ItemInstallPath
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.00432636
add esp, 0x10
push eax
push str.ItemInstallPath
lea ecx, [esp + 0x1c]
call fcn.00404f80
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xca0], 6
call dword [edx + 0x10]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x2c], 8
mov dword [esp + 0xc9c], 0xffffffff
jb 0x41f5eb
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044b775
add esp, 4
cmp dword [esp + 0x34], ebx
mov ecx, esi
jne 0x41f607
lea edx, [esp + 0x260]
push edx
push str.ItemInstallPath
call fcn.0041e2d0
jmp 0x41f619
lea eax, [esp + 0x260]
push eax
push str.ItemInstallPath
call fcn.0041e3b0
mov ecx, dword [0x46d488]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x278]
push eax
lea ecx, [esp + 0x264]
push str._sInstTempInstTemp_
push ecx
call fcn.004322a4
push str.ItemTempInstallPath
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
call fcn.00432636
add esp, 0x10
push eax
push str.ItemTempInstallPath
lea ecx, [esp + 0x1c]
call fcn.00404f80
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xca0], edi
call dword [edx + 0x10]
mov edi, eax
cmp dword [esp + 0x2c], 8
mov dword [esp + 0xc9c], 0xffffffff
jb 0x41f699
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044b775
add esp, 4
cmp edi, ebx
mov ecx, esi
jne 0x41f893
lea edx, [esp + 0x260]
push edx
push str.ItemTempInstallPath
call fcn.0041e2d0
jmp 0x41f8a5
mov edi, 7
push str.ItemExeUser
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.00432636
add esp, 4
push eax
push str.ItemExeUser
lea ecx, [esp + 0x1c]
call fcn.00404f80
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xca0], 8
call dword [edx + 0x10]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x2c], 8
mov dword [esp + 0xc9c], 0xffffffff
jb 0x41f723
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044b775
add esp, 4
cmp dword [esp + 0x10], ebx
push str.false
mov ecx, esi
push str.ItemExeUser
jne 0x41f73c
call fcn.0041e2d0
jmp 0x41f741
call fcn.0041e3b0
push str.ItemInstallPath
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.00432636
add esp, 4
push eax
push str.ItemInstallPath
lea ecx, [esp + 0x1c]
call fcn.00404f80
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0xca0], 9
call dword [edx + 0x10]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x2c], 8
mov dword [esp + 0xc9c], 0xffffffff
jb 0x41f7a5
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0044b775
add esp, 4
cmp dword [esp + 0x10], ebx
jne 0x41f7c9
mov edx, dword [0x46d488]
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x278]
push eax
push str.ItemInstallPath
mov ecx, esi
call fcn.0041e2d0
jmp 0x41f7e5
mov ecx, dword [0x46d488]
mov edx, dword [ecx + 8]
mov eax, dword [edx + 0x278]
push eax
push str.ItemInstallPath
mov ecx, esi
call fcn.0041e3b0
mov eax, dword [0x46d488]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 0x278]
push edx
lea eax, [esp + 0x264]
push str._sInstTemp_
push eax
call fcn.004322a4
push str.ItemTempInstallPath
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov word [esp + 0x50], bx
call fcn.00432636
add esp, 0x10
push eax
push str.ItemTempInstallPath
lea ecx, [esp + 0x44]
call fcn.00404f80
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0xca0], 0xa
call dword [edx + 0x10]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x54], 8
mov dword [esp + 0xc9c], 0xffffffff
jb 0x41f86a
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0044b775
add esp, 4
cmp dword [esp + 0x10], ebx
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
mov ecx, esi
jne 0x41f893
lea edx, [esp + 0x260]
push edx
push str.ItemTempInstallPath
call fcn.0041e2d0
jmp 0x41f8a5
lea eax, [esp + 0x260]
push eax
push str.ItemTempInstallPath
call fcn.0041e3b0
mov eax, 1
mov ecx, dword [esp + 0xc94]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xc8c]
call fcn.00431d98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret