Function at 0x40a630
Capabilities:
Get disk information
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x433277
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x44dd94]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebp
push esi
push edi
mov eax, dword [0x44dd94]
xor eax, esp
push eax
lea eax, [esp + 0x204]
mov dword fs:[0], eax
mov ebp, ecx
call sub.SHELL32.dll_IsUserAnAdmin
test eax, eax
jne 0x40a693
call fcn.00410180
test eax, eax
je 0x40a693
mov eax, dword [esp + 0x214]
push eax
call fcn.004093f0
add esp, 4
jmp 0x40a97f
xor ecx, ecx
cmp dword [esp + 0x214], ecx
push 0xf003f
sete cl
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
jne 0x40a6d5
mov dword [esp + 0x18], vtable.TrueCrypt::SystemException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x448828
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
call fcn.004180e9
mov dword [esp + 0x18], eax
push 2
push str.truecrypt
push eax
mov dword [esp + 0x218], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40a719
mov dword [esp + 0x20], vtable.TrueCrypt::SystemException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
push 0x448828
lea eax, [esp + 0x24]
push eax
call fcn.004180e9
mov dword [esp + 0x20], esi
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0x20c], 2
test edi, edi
je 0x40a8c2
push 0xb
call fcn.0040ff70
add esp, 4
test eax, eax
jne 0x40a8b6
lea ecx, [esp + 0x60]
push ecx
mov ecx, ebp
call fcn.0040a3f0
push str.drivers_truecrypt.sys
lea ecx, [esp + 0x64]
mov byte [esp + 0x210], 3
call fcn.004048e0
mov eax, dword [esp + 0x64]
mov ebp, 0x10
cmp dword [esp + 0x78], ebp
jae 0x40a789
lea eax, [esp + 0x64]
push 0x104
lea edx, [esp + 0x100]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
test eax, eax
je 0x40a8a3
push 0x80
lea eax, [esp + 0x80]
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40a8a3
cmp byte [esp + 0x7c], 0x46
jne 0x40a8a3
cmp byte [esp + 0x7d], 0x41
jne 0x40a8a3
cmp byte [esp + 0x7e], 0x54
jne 0x40a8a3
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], ebp
jae 0x40a801
lea eax, [esp + 0x64]
push 0x104
lea edx, [esp + 0x100]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x40a831
lea ecx, [esp + 0x10]
call fcn.00408990
push 0x448828
lea eax, [esp + 0x14]
push eax
call fcn.004180e9
lea ecx, [esp + 0xfc]
push ecx
lea ecx, [esp + 0x48]
call fcn.00402010
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x435658
lea ecx, [esp + 0x50]
call fcn.004013d0
dec eax
push eax
push 0x435658
lea ecx, [esp + 0x50]
call fcn.004013d0
dec eax
push eax
push 0x435658
lea ecx, [esp + 0x50]
call fcn.004013d0
inc eax
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x50]
call fcn.00402110
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x218], 4
call fcn.004019c0
lea ecx, [esp + 0x28]
call fcn.00401870
lea ecx, [esp + 0x60]
mov byte [esp + 0x20c], 2
call fcn.00401870
jmp 0x40a8bb
mov ebp, 0x10
cmp dword [esp + 0x58], 0
jne 0x40a8c6
xor eax, eax
jmp 0x40a8d4
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebp
jae 0x40a8d4
lea eax, [esp + 0x48]
push 0
push 0
mov ecx, edi
neg ecx
sbb ecx, ecx
push 0
and ecx, str.Filter
xor edx, edx
push 0
test edi, edi
push 0
setne dl
push ecx
push eax
inc edx
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x40a925
mov dword [esp + 0x10], vtable.TrueCrypt::SystemException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
push 0x448828
lea eax, [esp + 0x14]
push eax
call fcn.004180e9
mov ecx, dword [esp + 0x214]
push ecx
push str.Start
push str.SYSTEMCurrentControlSetServices_truecrypt
call fcn.004141b0
add esp, 0xc
test eax, eax
jne 0x40a964
mov dword [esp + 0x10], vtable.TrueCrypt::SystemException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x448828
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
call fcn.004180e9
lea ecx, [esp + 0x44]
call fcn.00401870
lea eax, [esp + 0x20]
call fcn.004082d0
lea eax, [esp + 0x18]
call fcn.004082d0
mov ecx, dword [esp + 0x204]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.0041851b
add esp, 0x200
ret 4