Function at 0x402350
Capabilities:
Get common file path

Disassembly:
sub esp, 0x310
push ebx
push 0x104
lea eax, [esp + 0xc]
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40239a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x40b540]
push eax
push str.GetSystemDirectory_failed.___d_
push 0x3eb
push ecx
call fcn.00401000
add esp, 0x10
mov eax, 1
pop ebx
add esp, 0x310
ret
push 0x104
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4023dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x40b540]
push str.GetWindowsDirectory_failed.___d_
push 0x3eb
push eax
call fcn.00401000
add esp, 0x10
mov eax, 1
pop ebx
add esp, 0x310
ret
mov eax, 0x40ac74
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4023e4
push ebp
push esi
push edi
lea edi, [esp + 0x118]
sub eax, edx
dec edi
lea ebp, [edi + 1]
jmp 0x402400
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402400
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 0x40ac70
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402420
sub eax, ecx
dec ebp
mov esi, ecx
mov edi, ebp
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402430
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4024bc
mov ecx, dword [0x40b540]
push str.Removing_lock_files_...
push 0x3eb
push ecx
call fcn.00401000
add esp, 0xc
lea edx, [esp + 0x10]
mov ecx, 0x40ac94
call fcn.00401350
mov edx, 0x40aca0
lea ecx, [esp + 0x14]
call fcn.004015f0
mov edx, 0x40acb0
lea ecx, [esp + 0x14]
call fcn.004015f0
mov edx, 0x40acc0
lea ecx, [esp + 0x118]
call fcn.004015f0
mov edx, 0x40acd0
lea ecx, [esp + 0x14]
call fcn.004015f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x310
ret
mov edx, dword [0x40b540]
push str.Copying_files_...
push 0x3eb
push edx
call fcn.00401000
mov eax, dword [ebx + 8]
mov edi, 1
add esp, 0xc
cmp eax, edi
jne 0x402509
push 0x40acf4
lea eax, [esp + 0x18]
push eax
lea ecx, [ebx + 0x1c]
mov edx, str.Sentinel.vxd
call fcn.004016e0
test eax, eax
je 0x402509
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
cmp dword [ebx + 0x10], edi
jne 0x402548
push 0x40ad14
lea ecx, [esp + 0x18]
lea esi, [ebx + 0x1c]
push ecx
mov edx, str.Sntnlusb.sys
mov ecx, esi
call fcn.004016e0
test eax, eax
jne 0x4024fc
push str.Sntnlusb.inf
lea edx, [esp + 0x11c]
push edx
mov edx, str.Sntnlusb98.inf
mov ecx, esi
call fcn.004016e0
test eax, eax
jne 0x4024fc
push 0x40ad54
lea eax, [esp + 0x18]
push eax
lea ecx, [ebx + 0x1c]
mov edx, 0x40ad64
call fcn.004016e0
test eax, eax
jne 0x4024fc
push str.spnsrv9x.exe
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x224]
push str._s_s
push edx
call fcn.00402a77
add esp, 0x10
lea edx, [esp + 0x21c]
mov ecx, str.SSP_Server
call fcn.00401450
mov eax, dword [0x40b540]
push str.Starting_lock_server_...
push 0x3eb
push eax
call fcn.00401000
add esp, 0xc
lea edx, [esp + 0x14]
lea ecx, [esp + 0x21c]
call fcn.004012d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x310
ret