Function at 0x4a0f30
Capabilities:
Check for time delay via gettickcount
Check if file exists
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x57cb1b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x248], 0
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x24], edi
mov ebx, 1
mov byte [esp + 0x248], bl
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x248], 2
cmp dword [0x5dff20], ebx
mov dword [esp + 0x18], 0
jne 0x4a1026
push str.KDevDriveInstall::SilentInstallDrive_install_repeat____
mov ecx, 0x6180b8
call fcn.00435a30
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x248], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a1016
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 0
lea eax, [edi - 0x10]
jmp 0x4a15ab
test byte [0x6199c8], bl
mov dword [0x5dff20], ebx
jne 0x4a104c
or dword [0x6199c8], ebx
call fcn.0046c480
push 0x580670
call fcn.0056a011
add esp, 4
cmp byte [0x6199ce], bl
je 0x4a1552
push 0x618148
push 0x618144
push 0x618140
push 0x61813c
push 0x618138
call fcn.0046c550
push eax
call fcn.00529710
test eax, eax
je 0x4a1552
xor edi, edi
lea ebx, [esp + 0x10]
call fcn.004125d0
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, str.drv_
mov byte [esp + 0x250], 3
call fcn.0041a8a0
add esp, 8
lea edi, [esp + 0x20]
mov byte [esp + 0x248], 4
call fcn.004101e0
mov byte [esp + 0x248], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a10e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a110b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp eax, 0x10
je 0x4a1124
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, 0x618148
call fcn.004116a0
mov ecx, dword [0x618148]
lea esi, [esp + 0x14]
call fcn.004123e0
push eax
lea ecx, [esp + 0x14]
push ecx
lea ebx, [esp + 0x28]
mov byte [esp + 0x250], 5
call fcn.00413170
add esp, 8
lea edi, [esp + 0x24]
mov byte [esp + 0x248], 6
call fcn.004101e0
mov byte [esp + 0x248], 5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a1190
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a11b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x2c]
lea edi, [esp + 0x1c]
call fcn.00410020
mov edi, dword [esp + 0x24]
mov ecx, edi
lea esi, [esp + 0x14]
call fcn.004123e0
mov bl, 7
mov byte [esp + 0x248], bl
mov eax, dword [eax]
lea edx, [esp + 0x10]
push edx
mov ecx, eax
call fcn.00412660
add esp, 4
mov byte [esp + 0x248], 8
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00410240
mov byte [esp + 0x248], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a123e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a1266
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a12b9
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x4a128f
xor ecx, ecx
lea eax, [esp + 0x24]
call fcn.00410610
mov edi, dword [esp + 0x24]
push edi
call fcn.00425800
mov ecx, dword [0x618144]
add esp, 4
push 0x10
push 0
push ecx
mov esi, eax
call dword [sym.imp.MSVCR80.dll_wcstoul]
add esp, 0xc
cmp esi, eax
je 0x4a131c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edx, dword [0x618148]
push 0
push 0x258
push edx
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.00413960
add esp, 0xc
mov ebx, eax
call esi
mov esi, eax
sub esi, dword [esp + 0x18]
test ebx, ebx
je 0x4a1320
mov eax, dword [0x618148]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
call fcn.00410660
add eax, 0x10
mov dword [edi], eax
push ebx
push 3
push 0
push esi
push ecx
mov byte [esp + 0x260], 9
mov dword [esp + 0x2c], esp
jmp 0x4a152c
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push eax
xor edx, edx
mov ecx, edi
call fcn.0053a0f0
add esp, 4
test al, al
jne 0x4a1367
mov eax, dword [0x618148]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
call fcn.00410660
add eax, 0x10
mov dword [edi], eax
push 0
push 4
push 0
push esi
push ecx
mov byte [esp + 0x260], 0xa
mov dword [esp + 0x2c], esp
jmp 0x4a152c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, 0x58bff8
call fcn.0041a8a0
lea ecx, [esp + 0x18]
push 0x61813c
push ecx
mov ebx, eax
mov byte [esp + 0x258], 0xb
call fcn.00413170
mov eax, dword [eax]
add esp, 0x10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call fcn.00410000
lea ecx, [esp + 0x14]
mov byte [esp + 0x248], 2
call fcn.00410000
test bl, bl
je 0x4a13f5
mov eax, dword [0x618148]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
call fcn.00410660
add eax, 0x10
mov dword [edi], eax
push 0
push 5
push 0
push esi
push ecx
mov byte [esp + 0x260], 0xc
mov dword [esp + 0x2c], esp
jmp 0x4a152c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x18]
push eax
mov ebx, 0x58bff8
call fcn.0041a8a0
lea ecx, [esp + 0x18]
push 0x61813c
push ecx
mov ebx, eax
mov byte [esp + 0x258], 0xd
call fcn.00413170
mov byte [esp + 0x258], 0xe
mov eax, dword [eax]
mov edx, dword [0x618138]
push edx
mov ecx, eax
call fcn.00524fb0
add esp, 0x14
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00410000
lea ecx, [esp + 0x14]
mov byte [esp + 0x248], 2
call fcn.00410000
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov eax, dword [0x618148]
sub ebx, dword [esp + 0x18]
add eax, 0xfffffff0
test edi, edi
push ecx
jne 0x4a1506
mov dword [esp + 0x14], esp
mov edi, esp
call fcn.00410660
add eax, 0x10
mov dword [edi], eax
push 0
push 1
push ebx
mov byte [esp + 0x258], 0xf
mov eax, dword [0x618138]
push esi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
call fcn.00410660
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x260], 2
call fcn.00520b80
mov eax, dword [0x618138]
push eax
push str.KDevDriveInstall::SilentInstallDrive_id:_s_InstallOk
mov ecx, 0x6180b8
mov dword [0x5dff20], 2
call fcn.00435a30
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.00410000
lea ecx, [esp + 0x24]
call fcn.00410000
lea ecx, [esp + 0x20]
call fcn.00410000
jmp 0x4a15ef
mov dword [esp + 0x2c], esp
mov dword [esp + 0x1c], esp
call fcn.00410660
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
push edi
push 2
push ebx
push esi
push ecx
mov byte [esp + 0x260], 0x10
mov dword [esp + 0x30], esp
mov eax, dword [0x618138]
add eax, 0xfffffff0
mov esi, esp
call fcn.00410660
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x260], 2
call fcn.00520b80
mov ebx, 1
mov edx, dword [0x618138]
push edx
push str.KDevDriveInstall::SilentInstallDrive_id:_s_InstallFail
mov ecx, 0x6180b8
mov dword [0x5dff20], 0
call fcn.00435a30
mov byte [esp + 0x250], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a159c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x248], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a15c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a15ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00569ed6
mov esp, ebp
pop ebp
ret