Function at 0x403ada
Capabilities:
Get disk information

Disassembly:
push 0x2ec
mov eax, 0x46f610
call fcn.0044f666
mov ebx, ecx
push 0xd4
lea eax, [ebp - 0xe4]
push 0
push eax
call fcn.0042ac90
add esp, 0xc
lea eax, [ebp - 0xe4]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x403bf7
cdq
and edx, 3
push 0x20a
push 0
lea edi, [edx + eax]
lea eax, [ebp - 0x2f0]
sar edi, 2
push eax
call fcn.0042ac90
add esp, 0xc
lea esi, [ebp - 0xe4]
xor eax, eax
mov word [ebp - 0xe8], ax
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0040456c
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
test edi, edi
jle 0x403bf4
xor eax, eax
mov word [esi + 4], ax
lea eax, [ebp - 0x2f0]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x403be8
lea eax, [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x2f4]
call fcn.0040651c
and dword [ebp - 4], 0
lea eax, [ebp - 0x2f4]
push eax
lea ecx, [ebx + 4]
call fcn.00403fd1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2f4]
lea ecx, [ecx - 0x10]
call fcn.0040630c
push esi
lea ecx, [ebp - 0x2f8]
call fcn.0040651c
lea eax, [ebp - 0x2f8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebx + 4]
call fcn.00403fd1
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2f8]
lea ecx, [ecx - 0x10]
call fcn.0040630c
add esi, 8
sub edi, 1
jne 0x403b60
xor eax, eax
inc eax
call fcn.0044f621
ret

Function at 0x406195
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4061f0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4061e1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4061dd
cmp esi, ecx
jae 0x4061e1
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4061cb
cmp esi, ecx
jb 0x4061e5
xor eax, eax
jmp 0x4061ef
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4065c6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi], esi
je 0x406647
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 1
je 0x4065fa
cmp dword [ebp - 8], 2
jne 0x406647
mov ecx, dword [ebp + 0xc]
call fcn.004062d7
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.00406418
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40663e
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0xc]
xor esi, esi
shr eax, 1
inc esi
mov word [ecx + eax*2], dx
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040681c
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8