Function at 0x4228d0
Capabilities:
Get disk information
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x48c187
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x4b77c0]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebp
push esi
push edi
mov eax, dword [0x4b77c0]
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 0x422933
call fcn.004378f0
test eax, eax
je 0x422933
mov eax, dword [esp + 0x214]
push eax
call fcn.0041f810
add esp, 4
jmp 0x422c1f
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 0x422975
mov dword [esp + 0x18], vtable.TrueCrypt::SystemException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4abaa8
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
call fcn.0046b8cf
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 0x4229b9
mov dword [esp + 0x20], vtable.TrueCrypt::SystemException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x24], eax
push 0x4abaa8
lea eax, [esp + 0x24]
push eax
call fcn.0046b8cf
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 0x422b62
push 0xb
call fcn.004369c0
add esp, 4
test eax, eax
jne 0x422b56
lea ecx, [esp + 0x60]
push ecx
mov ecx, ebp
call fcn.00421a80
push str.drivers_truecrypt.sys
lea ecx, [esp + 0x64]
mov byte [esp + 0x210], 3
call fcn.00420c60
mov eax, dword [esp + 0x64]
mov ebp, 0x10
cmp dword [esp + 0x78], ebp
jae 0x422a29
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 0x422b43
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 0x422b43
cmp byte [esp + 0x7c], 0x46
jne 0x422b43
cmp byte [esp + 0x7d], 0x41
jne 0x422b43
cmp byte [esp + 0x7e], 0x54
jne 0x422b43
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], ebp
jae 0x422aa1
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 0x422ad1
lea ecx, [esp + 0x10]
call fcn.0041e690
push 0x4abaa8
lea eax, [esp + 0x14]
push eax
call fcn.0046b8cf
lea ecx, [esp + 0xfc]
push ecx
lea ecx, [esp + 0x48]
call fcn.0040c6a0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x492e7c
lea ecx, [esp + 0x50]
call fcn.0041ff40
dec eax
push eax
push 0x492e7c
lea ecx, [esp + 0x50]
call fcn.0041ff40
dec eax
push eax
push 0x492e7c
lea ecx, [esp + 0x50]
call fcn.0041ff40
inc eax
push eax
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x50]
call fcn.00420c90
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x218], 4
call fcn.0040c370
lea ecx, [esp + 0x28]
call fcn.0042e890
lea ecx, [esp + 0x60]
mov byte [esp + 0x20c], 2
call fcn.0042e890
jmp 0x422b5b
mov ebp, 0x10
cmp dword [esp + 0x58], 0
jne 0x422b66
xor eax, eax
jmp 0x422b74
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x5c], ebp
jae 0x422b74
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 0x422bc5
mov dword [esp + 0x10], vtable.TrueCrypt::SystemException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
push 0x4abaa8
lea eax, [esp + 0x14]
push eax
call fcn.0046b8cf
mov ecx, dword [esp + 0x214]
push ecx
push str.Start
push str.SYSTEMCurrentControlSetServices_truecrypt
call fcn.00450b20
add esp, 0xc
test eax, eax
jne 0x422c04
mov dword [esp + 0x10], vtable.TrueCrypt::SystemException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4abaa8
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
call fcn.0046b8cf
lea ecx, [esp + 0x44]
call fcn.0042e890
lea eax, [esp + 0x20]
call fcn.0041e1d0
lea eax, [esp + 0x18]
call fcn.0041e1d0
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.0046be7b
add esp, 0x200
ret 4