Function at 0x401ce0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x14
push ebp
push esi
push edi
push 0x4298c8
xor ebp, ebp
push str.Load360tdwsEx.txt
push 0x8e3e64
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.004026d0
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, 2
jne 0x401d56
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 4]
push 0x4298e0
push eax
call fcn.00402770
add esp, 8
test eax, eax
je 0x401dc5
mov ecx, dword [esi + 4]
lea eax, [esp + 0x24]
push eax
push 1
push ecx
call dword [sym.imp.SHLWAPI.dll_StrToIntExW]
test eax, eax
je 0x401dc5
mov edx, dword [esp + 0x24]
mov dword [0x5f0fb8], edx
jmp 0x401dc5
cmp eax, 3
jne 0x401dc5
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 4]
push 0x4298e0
push eax
call fcn.00402770
add esp, 8
test eax, eax
je 0x401dc5
mov eax, dword [esi + 8]
push 0x4298e0
push eax
call fcn.00402770
add esp, 8
test eax, eax
je 0x401dc5
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.SHLWAPI.dll_StrToIntExW]
lea eax, [esp + 0x24]
push eax
push 1
push ecx
call edi
test eax, eax
je 0x401daa
mov edx, dword [esp + 0x24]
mov dword [0x5f0fb8], edx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x24]
push eax
push 1
push ecx
call edi
test eax, eax
je 0x401dc5
mov edx, dword [esp + 0x24]
mov dword [0x5f0fbc], edx
push 1
push 0x401cc0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebp
call fcn.004030f0
push eax
call fcn.004023e0
add esp, 8
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x8e3e50], eax
cmp eax, ebp
je 0x401e17
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x8e3e50]
cmp dword [esp + 0x24], ebp
je 0x401e2f
call section..text
test eax, eax
je 0x4020e0
call fcn.00401090
push 0x208
call fcn.00402110
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebp
je 0x4020c8
push ebx
push 0x104
call fcn.00402110
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40206b
push 0x104
call fcn.00402110
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x40206b
push 0x104
call fcn.00402110
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x40206b
push 0x104
call fcn.00402110
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x40206b
push 0x104
call fcn.00402110
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40206b
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x401eeb
mov ecx, dword [0x8e3e64]
push str.GetSystemDirectoryA_error__n
push ecx
call fcn.00402140
add esp, 8
jmp 0x40206b
call fcn.00401b20
test al, al
jne 0x401f0d
mov edx, dword [0x8e3e64]
push str.GetLoadDriverPriviledge_error__n
push edx
call fcn.00402140
add esp, 8
jmp 0x40206b
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor eax, eax
jmp 0x401f24
mov eax, dword [esp + 0x20]
cmp eax, 0x32
je 0x40206b
inc eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
call fcn.00401100
add esp, 4
test al, al
je 0x401fae
mov edi, dword [esp + 0x14]
push edi
push ebp
push str._sdrivers_s.sys
push 0x104
push ebx
call fcn.00402440
add esp, 0x14
push ebx
call esi
cmp eax, 0xffffffff
jne 0x401f20
mov edx, dword [esp + 0x10]
push edi
push str.SYSTEMCurrentControlSetServices_s
push 0x104
push edx
call fcn.00402440
mov eax, dword [esp + 0x38]
push eax
push 0x80000002
call fcn.00401680
push edi
call fcn.004017d0
add esp, 0x1c
test al, al
jne 0x401fc7
mov ecx, dword [0x8e3e64]
push str.ReleaseDrvFile_error__n
push ecx
call fcn.00402140
add esp, 8
jmp 0x40206b
mov ecx, dword [0x8e3e64]
push str.GenRandName_error__n
push ecx
call fcn.00402140
add esp, 8
jmp 0x40206b
mov edx, dword [0x8e3e64]
push 0
push edi
push edi
push str.szTdwsPath_:_s_n_szTdwsSrvName:_s_n_dwControlFuncs_8x_n
push edx
call fcn.00402140
push 2
push edi
push edi
call fcn.004013f0
add esp, 0x20
test al, al
jne 0x402016
push edi
call fcn.00401980
add esp, 4
test al, al
je 0x40206b
push 3
push edi
push edi
call fcn.004013f0
add esp, 0xc
test al, al
je 0x40206b
push edi
call fcn.004017d0
add esp, 4
test al, al
je 0x40206b
push edi
call fcn.004012b0
add esp, 4
test al, al
jne 0x40202c
mov eax, ebx
mov esi, edi
call fcn.004011a0
push edi
push ebp
push str._sdrivers_s.sys
push 0x104
push ebx
call fcn.00402440
add esp, 0x14
mov esi, ebx
call fcn.00401ba0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x28]
push edi
push str.SYSTEMCurrentControlSetServices_s
push 0x104
push eax
call fcn.00402440
add esp, 0x10
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004024a0
add esp, 4
test ebx, ebx
je 0x402085
push ebx
call fcn.004024a0
add esp, 4
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x402097
push eax
call fcn.004024a0
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4020a8
push eax
call fcn.004024a0
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4020b9
push eax
call fcn.004024a0
add esp, 4
test ebp, ebp
je 0x4020c6
push ebp
call fcn.004024a0
add esp, 4
xor ebp, ebp
mov eax, dword [0x8e3e64]
cmp eax, ebp
je 0x4020e0
push eax
call fcn.00402ee0
add esp, 4
mov dword [0x8e3e64], ebp
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x14
ret