Function at 0x403510
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x760
lea eax, [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
push esi
push edi
push 0x40e220
push eax
call ebx
mov edi, dword [esp + 0x77c]
cmp edi, 1
jne 0x40354c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
push str.Drivers_
push ecx
call esi
jmp 0x403552
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebp, dword [esp + 0x774]
lea edx, [esp + 0x18]
push ebp
push edx
call esi
lea eax, [esp + 0x630]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4035a1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x778]
push edi
push edx
call fcn.004019c0
cmp eax, 1
je 0x4035a1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x760
ret
mov eax, dword [esp + 0x778]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x403608
lea ecx, [esp + 0x11c]
push 0x40e100
push ecx
call ebx
lea edx, [esp + 0x11c]
push ebp
push edx
call esi
mov eax, dword [esp + 0x780]
lea ecx, [esp + 0x18]
push eax
push 1
lea edx, [esp + 0x124]
push ecx
push edx
call fcn.00403ce0
add esp, 0x10
test eax, eax
je 0x403825
cmp eax, 1
je 0x403608
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x760
ret
lea eax, [esp + 0x11c]
push 0x40e100
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x11c]
push ecx
call edi
cmp byte [esp + eax + 0x11c], 0x5c
je 0x40363e
mov cl, byte [esp + eax + 0x11b]
dec eax
cmp cl, 0x5c
jne 0x403631
lea edx, [esp + 0x18]
push 0x40e220
push edx
mov byte [esp + eax + 0x124], 0
call ebx
cmp dword [esp + 0x77c], 1
jne 0x403668
lea eax, [esp + 0x18]
push str.Drivers_
push eax
call esi
lea ecx, [esp + 0x18]
push ecx
call edi
cmp byte [esp + eax + 0x18], 0x5c
je 0x403680
mov cl, byte [esp + eax + 0x17]
dec eax
cmp cl, 0x5c
jne 0x403676
lea edx, [esp + 0x52c]
push 0x104
push edx
mov byte [esp + eax + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, 0x41
lea esi, [esp + 0x18]
lea edi, [esp + 0x324]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x41
lea esi, [esp + 0x11c]
lea edi, [esp + 0x428]
lea edx, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x41
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x220]
push eax
push ecx
lea eax, [esp + 0x430]
push edx
lea ecx, [esp + 0x330]
push eax
lea edx, [esp + 0x53c]
push ecx
push edx
mov esi, 0x104
push ebp
push 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
call sub.VERSION.dll_VerFindFileA
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x324]
lea edx, [esp + 0x428]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x324]
push eax
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x780]
push edx
lea ecx, [esp + 0x128]
push eax
push ecx
push esi
push ebp
push 2
call sub.VERSION.dll_VerInstallFileA
test eax, eax
je 0x403766
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x760
ret
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40381b
lea edx, [esp + 0x18]
push 0x40e220
push edx
call ebx
mov esi, dword [esp + 0x77c]
cmp esi, 1
jne 0x4037a2
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x18]
push str.Drivers_
push eax
call edi
jmp 0x4037a8
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
push ebp
push ecx
call edi
lea edx, [esp + 0x220]
push 0x40e220
push edx
call ebx
cmp esi, 1
jne 0x4037d3
lea eax, [esp + 0x220]
push str.Drivers_
push eax
call edi
mov ecx, dword [esp + 0x778]
lea edx, [esp + 0x220]
push ecx
push edx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
lea eax, [esp + 0x1c]
push 0
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
je 0x403803
call esi
lea ecx, [esp + 0x18]
push 4
lea edx, [esp + 0x224]
push ecx
push edx
call edi
cmp eax, 1
je 0x40381b
call esi
mov dword [0x40e204], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x760
ret