Function at 0x40a950
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f48cf
mov eax, dword fs:[0]
push eax
sub esp, 0x6d8
mov eax, dword [0x542488]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6d8], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6d0], ebx
mov dword [ebp - 0x6e4], eax
mov dword [ebp - 0x6cc], ebx
cmp dword [esi + 0x10], ebx
jne 0x40a9ab
lea eax, [ebx + 0xe]
jmp 0x40b167
push 0x1b
xor eax, eax
mov dword [ebp - 0x66c], ebx
push str.TD_WPS_PROCESS_ENTRY_VERIFY
lea ecx, [ebp - 0x67c]
mov dword [ebp - 0x668], 7
mov word [ebp - 0x67c], ax
call fcn.00407d30
lea eax, [ebp - 0x67c]
mov dword [ebp - 4], 0
push eax
call fcn.004038e0
mov ecx, eax
call fcn.00404910
mov edx, dword [ebp - 0x668]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x40aa37
mov ecx, dword [ebp - 0x67c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aa2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b185
push edx
push ecx
call fcn.004b5e6a
add esp, 8
push 4
xor eax, eax
mov dword [ebp - 0x66c], 0
push 0x5039b4
lea ecx, [ebp - 0x67c]
mov dword [ebp - 0x668], 7
mov word [ebp - 0x67c], ax
call fcn.00407d30
lea eax, [ebp - 0x67c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x64c]
push esi
push eax
call fcn.00409500
add esp, 0xc
mov edx, dword [ebp - 0x668]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40aac8
mov ecx, dword [ebp - 0x67c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aabe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b18a
push edx
push ecx
call fcn.004b5e6a
add esp, 8
xor eax, eax
mov dword [ebp - 0x66c], 0
cmp dword [ebp - 0x63c], 3
mov dword [ebp - 0x668], 7
mov word [ebp - 0x67c], ax
jb 0x40b155
mov esi, dword [ebp - 0x638]
lea eax, [ebp - 0x64c]
mov edi, dword [ebp - 0x64c]
cmp esi, 8
cmovae eax, edi
cmp word [eax + 2], 0x3a
jne 0x40b155
cmp esi, 8
lea eax, [ebp - 0x64c]
cmovae eax, edi
cmp word [eax + 4], 0x5c
je 0x40ab3f
cmp esi, 8
lea eax, [ebp - 0x64c]
cmovae eax, edi
cmp word [eax + 4], 0x2f
jne 0x40b155
xor eax, eax
push 0x20a
push eax
mov dword [ebp - 0x660], eax
mov dword [ebp - 0x65c], eax
mov dword [ebp - 0x658], eax
mov dword [ebp - 0x654], eax
mov dword [ebp - 0x650], eax
lea eax, [ebp - 0x634]
push eax
call fcn.004b8860
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004b8860
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004b8860
push 0x105
lea ecx, [ebp - 0x21c]
cmp esi, 8
push ecx
push 0x105
lea ecx, [ebp - 0x428]
push ecx
push 0x105
lea ecx, [ebp - 0x634]
push ecx
push 0xa
lea ecx, [ebp - 0x660]
lea eax, [ebp - 0x64c]
cmovae eax, edi
push ecx
push eax
call fcn.004c341e
lea ecx, [ebp - 0x660]
add esp, 0x48
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40abe2
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x40b155
mov ecx, dword [ebp - 0x660]
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x40ac17
add word [ebp - 0x660], 0x20
mov ecx, dword [ebp - 0x660]
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x40b155
cmp word [ebp - 0x65e], 0x3a
jne 0x40b155
push 0x503854
lea eax, [ebp - 0x660]
push 0xa
push eax
call fcn.004c2f8e
add esp, 0xc
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x40ac63
cmp eax, 6
jne 0x40b155
mov eax, dword [ebp - 0x6d8]
cmp byte [eax + 0x40], 0
je 0x40ad7c
cmp byte [ebp + 0x10], 0
je 0x40ad21
push 0xf
xor eax, eax
mov dword [ebp - 0x654], 0
push str.pdf2wordapp.dll
lea ecx, [ebp - 0x664]
mov dword [ebp - 0x650], 7
mov word [ebp - 0x664], ax
call fcn.00407d30
lea ecx, [ebp - 0x664]
cmp dword [ecx + 0x14], 8
lea edi, [ecx + 0x10]
jb 0x40acbd
mov ecx, dword [ecx]
mov edi, dword [edi]
lea eax, [ebp - 0x64c]
cmp dword [ebp - 0x638], 8
mov esi, dword [ebp - 0x63c]
cmovae eax, dword [ebp - 0x64c]
push edi
push ecx
push 0
push esi
push eax
call fcn.00405100
sub esi, edi
mov byte [ebp - 4], 3
add esp, 0x14
mov byte [ebp - 0x6c5], 1
cmp esi, eax
je 0x40acff
mov byte [ebp - 0x6c5], 0
push fcn.00402400
push 1
push 0x18
lea eax, [ebp - 0x664]
push eax
call fcn.004b5eac
cmp byte [ebp - 0x6c5], 0
je 0x40ad21
mov al, 1
jmp 0x40ad23
xor al, al
push eax
lea eax, [ebp - 0x64c]
push eax
call fcn.00414190
add esp, 8
test eax, eax
jne 0x40ad7c
push str.md5.ini
lea ecx, [ebp - 0x694]
call fcn.00402260
lea eax, [ebp - 0x64c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x694]
mov ebx, 1
push eax
mov dword [ebp - 0x6cc], ebx
mov dword [ebp - 0x6d0], ebx
call fcn.004149c0
add esp, 8
mov byte [ebp - 0x6c5], bl
test al, al
je 0x40ad83
mov byte [ebp - 0x6c5], 0
mov dword [ebp - 4], 3
test bl, 1
je 0x40ada9
and ebx, 0xfffffffe
lea ecx, [ebp - 0x694]
mov dword [ebp - 0x6cc], ebx
mov dword [ebp - 0x6d0], ebx
call fcn.00402400
cmp byte [ebp - 0x6c5], 0
je 0x40adbc
mov ebx, 3
jmp 0x40b15a
push str.TD_WPS_PROCESS_ENTRY_VERIFIED
lea ecx, [ebp - 0x694]
call fcn.00402260
lea eax, [ebp - 0x694]
mov byte [ebp - 4], 6
push eax
call fcn.004038e0
mov ecx, eax
call fcn.00404910
lea ecx, [ebp - 0x694]
mov byte [ebp - 4], 3
call fcn.00402400
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x6ac]
push eax
call fcn.00409250
add esp, 8
mov ecx, dword [ebp - 0x69c]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x40ae2f
lea eax, [ebp - 0x6ac]
push eax
call fcn.004038e0
mov ecx, eax
call fcn.00404270
mov ecx, dword [ebp - 0x69c]
cmp dword [ebp - 0x698], 8
lea eax, [ebp - 0x6ac]
push 0xe
cmovae eax, dword [ebp - 0x6ac]
push str.wpscloudsvrimp
push 0
push ecx
push eax
call fcn.00405100
add esp, 0x14
cmp eax, 0xffffffff
je 0x40ae8d
call fcn.004038e0
test eax, eax
je 0x40ae8d
call fcn.004038e0
mov ecx, eax
call fcn.00403850
test eax, eax
je 0x40ae8d
call fcn.004038e0
mov ecx, eax
call fcn.00403850
push 2
push 0x503a1c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDllDirectoryW]
lea eax, [ebp - 0x6e0]
push eax
push 1
mov dword [ebp - 0x6e0], 0
call ebx
mov esi, eax
xor ecx, ecx
mov edi, 2
lea eax, [esi + 1]
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b5fc1
mov dword [ebp - 0x6d4], eax
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x694]
push eax
call fcn.00413e50
add esp, 0xc
lea ecx, [ebp - 0x64c]
push eax
call fcn.00402500
lea ecx, [ebp - 0x694]
call fcn.00402400
mov eax, dword [ebp - 0x63c]
xor ecx, ecx
inc eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b5fc1
lea ecx, [esi*2 + 2]
mov edi, eax
push ecx
push 0
push dword [ebp - 0x6d4]
call fcn.004b8860
cmp dword [ebp - 0x638], 8
lea ecx, [ebp - 0x64c]
mov eax, dword [ebp - 0x63c]
cmovae ecx, dword [ebp - 0x64c]
inc eax
push ecx
push eax
push edi
call fcn.004c3003
add esp, 0x1c
push dword [ebp - 0x6d4]
push esi
call ebx
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push edi
call esi
push str.TD_WPS_PROCESS_ENTRY_DLL_LOAD
lea ecx, [ebp - 0x694]
call fcn.00402260
lea eax, [ebp - 0x694]
mov byte [ebp - 4], 8
push eax
call fcn.004038e0
mov ecx, eax
call fcn.00404910
lea ecx, [ebp - 0x694]
mov byte [ebp - 4], 7
call fcn.00402400
cmp dword [ebp - 0x638], 8
lea eax, [ebp - 0x64c]
cmovae eax, dword [ebp - 0x64c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x6d8]
mov dword [ecx + 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x6d4]
push ebx
mov dword [ebp - 0x6dc], eax
call esi
push ebx
call fcn.004b5fca
push edi
call fcn.004b5fca
mov esi, dword [ebp - 0x6d8]
add esp, 8
cmp dword [esi + 0x44], 0
jne 0x40b027
mov ebx, dword [ebp - 0x6dc]
lea eax, [ebp - 0x6ac]
push ebx
push eax
lea eax, [ebp - 0x64c]
push eax
call fcn.0040ba40
shl ebx, 0x10
lea ecx, [ebp - 0x6ac]
add esp, 0xc
or ebx, 0xf
mov dword [ebp - 0x6dc], ebx
call fcn.00402400
jmp 0x40b15a
push str.TD_WPS_PROCESS_ENTRY_DLL_LOADED
lea ecx, [ebp - 0x694]
call fcn.00402260
lea eax, [ebp - 0x694]
mov byte [ebp - 4], 9
push eax
call fcn.004038e0
mov ecx, eax
call fcn.00404910
lea ecx, [ebp - 0x694]
mov byte [ebp - 4], 7
call fcn.00402400
mov eax, dword [ebp - 0x6e4]
cmp dword [eax + 0x10], 0
jne 0x40b088
push str.EntryPoint
lea ecx, [ebp - 0x664]
call fcn.00402260
mov ebx, dword [ebp - 0x6cc]
mov byte [ebp - 4], 0xa
or ebx, 2
jmp 0x40b0a4
push eax
lea ecx, [ebp - 0x67c]
call fcn.00402970
mov ebx, dword [ebp - 0x6cc]
mov dword [ebp - 4], 0xb
or ebx, 4
push eax
lea ecx, [ebp - 0x6c4]
mov dword [ebp - 0x6d0], ebx
call fcn.00402970
mov dword [ebp - 4], 0xc
test bl, 4
je 0x40b0d0
lea ecx, [ebp - 0x67c]
and ebx, 0xfffffffb
call fcn.00402400
mov byte [ebp - 4], 0xe
test bl, 2
je 0x40b0e4
lea ecx, [ebp - 0x664]
call fcn.00402400
lea eax, [ebp - 0x6c4]
mov ecx, esi
push eax
call fcn.00409050
mov dword [esi + 0x48], eax
test eax, eax
jne 0x40b109
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 0x10
jmp 0x40b13d
push str.TD_WPS_PROCESS_ENTRY_DLL_FIND_ENTRY
lea ecx, [ebp - 0x694]
call fcn.00402260
lea eax, [ebp - 0x694]
mov byte [ebp - 4], 0xf
push eax
call fcn.004038e0
mov ecx, eax
call fcn.00404910
lea ecx, [ebp - 0x694]
call fcn.00402400
xor ebx, ebx
lea ecx, [ebp - 0x6c4]
call fcn.00402400
lea ecx, [ebp - 0x6ac]
call fcn.00402400
jmp 0x40b15a
mov ebx, 0x13
lea ecx, [ebp - 0x64c]
call fcn.00402400
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5e78
mov esp, ebp
pop ebp
ret 0xc
call fcn.004c19b9
call fcn.004c19b9
int3