Function at 0x40ba20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a2b6f
mov eax, dword fs:[0]
push eax
sub esp, 0x6d8
mov eax, dword [0x4d63e4]
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 - 0x6dc], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6d4], ebx
mov dword [ebp - 0x6e4], eax
mov dword [ebp - 0x6d0], ebx
cmp dword [esi + 0x10], ebx
jne 0x40ba7b
lea eax, [ebx + 0xe]
jmp 0x40c226
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.00402e30
lea eax, [ebp - 0x67c]
mov dword [ebp - 4], 0
push eax
call fcn.004043c0
mov ecx, eax
call fcn.004052c0
mov edx, dword [ebp - 0x668]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x40bb07
mov ecx, dword [ebp - 0x67c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bafd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c244
push edx
push ecx
call fcn.0046c40b
add esp, 8
push 4
xor eax, eax
mov dword [ebp - 0x66c], 0
push str..dll
lea ecx, [ebp - 0x67c]
mov dword [ebp - 0x668], 7
mov word [ebp - 0x67c], ax
call fcn.00402e30
lea eax, [ebp - 0x67c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x64c]
push esi
push eax
call fcn.0040a620
add esp, 0xc
mov edx, dword [ebp - 0x668]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40bb98
mov ecx, dword [ebp - 0x67c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bb8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c249
push edx
push ecx
call fcn.0046c40b
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 0x40c214
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 0x40c214
cmp esi, 8
lea eax, [ebp - 0x64c]
cmovae eax, edi
cmp word [eax + 4], 0x5c
je 0x40bc0f
cmp esi, 8
lea eax, [ebp - 0x64c]
cmovae eax, edi
cmp word [eax + 4], 0x2f
jne 0x40c214
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.0046edf0
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0046edf0
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0046edf0
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.0047995f
lea ecx, [ebp - 0x660]
add esp, 0x48
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bcb2
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x40c214
mov ecx, dword [ebp - 0x660]
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x40bce7
add word [ebp - 0x660], 0x20
mov ecx, dword [ebp - 0x660]
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x40c214
cmp word [ebp - 0x65e], 0x3a
jne 0x40c214
push 0x4ac8f4
lea eax, [ebp - 0x660]
push 0xa
push eax
call fcn.004794cf
add esp, 0xc
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x40bd33
cmp eax, 6
jne 0x40c214
mov eax, dword [ebp - 0x6dc]
cmp byte [eax + 0x40], 0
je 0x40be4c
cmp byte [ebp + 0x10], 0
je 0x40bdf1
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.00402e30
lea ecx, [ebp - 0x664]
cmp dword [ecx + 0x14], 8
lea edi, [ecx + 0x10]
jb 0x40bd8d
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.00406c00
sub esi, edi
mov byte [ebp - 4], 3
add esp, 0x14
mov byte [ebp - 0x6c5], 1
cmp esi, eax
je 0x40bdcf
mov byte [ebp - 0x6c5], 0
push fcn.00402340
push 1
push 0x18
lea eax, [ebp - 0x664]
push eax
call fcn.0046c6ac
cmp byte [ebp - 0x6c5], 0
je 0x40bdf1
mov al, 1
jmp 0x40bdf3
xor al, al
push eax
lea eax, [ebp - 0x64c]
push eax
call fcn.0041d3f0
add esp, 8
test eax, eax
jne 0x40be4c
push str.md5.ini
lea ecx, [ebp - 0x694]
call fcn.00403490
lea eax, [ebp - 0x64c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x694]
mov ebx, 1
push eax
mov dword [ebp - 0x6d0], ebx
mov dword [ebp - 0x6d4], ebx
call fcn.0041ddd0
add esp, 8
mov byte [ebp - 0x6c5], bl
test al, al
je 0x40be53
mov byte [ebp - 0x6c5], 0
mov dword [ebp - 4], 3
test bl, 1
je 0x40be79
and ebx, 0xfffffffe
lea ecx, [ebp - 0x694]
mov dword [ebp - 0x6d0], ebx
mov dword [ebp - 0x6d4], ebx
call fcn.00402340
cmp byte [ebp - 0x6c5], 0
je 0x40be8c
mov ebx, 3
jmp 0x40c219
push str.TD_WPS_PROCESS_ENTRY_VERIFIED
lea ecx, [ebp - 0x694]
call fcn.00403490
lea eax, [ebp - 0x694]
mov byte [ebp - 4], 6
push eax
call fcn.004043c0
mov ecx, eax
call fcn.004052c0
lea ecx, [ebp - 0x694]
mov byte [ebp - 4], 3
call fcn.00402340
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x6ac]
push eax
call fcn.0040a370
add esp, 8
mov ecx, dword [ebp - 0x69c]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x40beff
lea eax, [ebp - 0x6ac]
push eax
call fcn.004043c0
mov ecx, eax
call fcn.00404d50
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.00406c00
add esp, 0x14
cmp eax, 0xffffffff
je 0x40bf5d
call fcn.004043c0
test eax, eax
je 0x40bf5d
call fcn.004043c0
mov ecx, eax
call fcn.00404330
test eax, eax
je 0x40bf5d
call fcn.004043c0
mov ecx, eax
call fcn.00404330
push 0
push 0x4aca7c
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.0046c419
mov dword [ebp - 0x6d8], eax
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x694]
push eax
call fcn.0041d0e0
add esp, 0xc
lea ecx, [ebp - 0x64c]
push eax
call fcn.004071b0
lea ecx, [ebp - 0x694]
call fcn.00402340
mov eax, dword [ebp - 0x63c]
xor ecx, ecx
inc eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046c419
lea ecx, [esi*2 + 2]
mov edi, eax
push ecx
push 0
push dword [ebp - 0x6d8]
call fcn.0046edf0
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.00479544
add esp, 0x1c
push dword [ebp - 0x6d8]
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.00403490
lea eax, [ebp - 0x694]
mov byte [ebp - 4], 8
push eax
call fcn.004043c0
mov ecx, eax
call fcn.004052c0
lea ecx, [ebp - 0x694]
mov byte [ebp - 4], 7
call fcn.00402340
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 - 0x6dc]
mov dword [ecx + 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x6d8]
push ebx
mov dword [ebp - 0x6cc], eax
call esi
push ebx
call fcn.0046c422
push edi
call fcn.0046c422
mov esi, dword [ebp - 0x6dc]
add esp, 8
cmp dword [esi + 0x44], 0
jne 0x40c0e0
mov ebx, dword [ebp - 0x6cc]
lea ecx, [ebp - 0x6ac]
shl ebx, 0x10
or ebx, 0xf
mov dword [ebp - 0x6cc], ebx
call fcn.00402340
jmp 0x40c219
push str.TD_WPS_PROCESS_ENTRY_DLL_LOADED
lea ecx, [ebp - 0x694]
call fcn.00403490
lea eax, [ebp - 0x694]
mov byte [ebp - 4], 9
push eax
call fcn.004043c0
mov ecx, eax
call fcn.004052c0
lea ecx, [ebp - 0x694]
mov byte [ebp - 4], 7
call fcn.00402340
mov eax, dword [ebp - 0x6e4]
cmp dword [eax + 0x10], 0
jne 0x40c141
push str.EntryPoint
lea ecx, [ebp - 0x664]
call fcn.00403490
mov ebx, dword [ebp - 0x6d0]
mov byte [ebp - 4], 0xa
or ebx, 2
jmp 0x40c15d
push eax
lea ecx, [ebp - 0x67c]
call fcn.00401980
mov ebx, dword [ebp - 0x6d0]
mov dword [ebp - 4], 0xb
or ebx, 4
push eax
lea ecx, [ebp - 0x6c4]
mov dword [ebp - 0x6d4], ebx
call fcn.00401980
mov dword [ebp - 4], 0xc
test bl, 4
je 0x40c189
lea ecx, [ebp - 0x67c]
and ebx, 0xfffffffb
call fcn.00402340
mov byte [ebp - 4], 0xe
test bl, 2
je 0x40c19d
lea ecx, [ebp - 0x664]
call fcn.00402340
lea eax, [ebp - 0x6c4]
mov ecx, esi
push eax
call fcn.0040a180
mov dword [esi + 0x48], eax
test eax, eax
jne 0x40c1c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl ebx, 0x10
or ebx, 0x10
mov dword [ebp - 0x6cc], ebx
jmp 0x40c1fc
push str.TD_WPS_PROCESS_ENTRY_DLL_FIND_ENTRY
lea ecx, [ebp - 0x694]
call fcn.00403490
lea eax, [ebp - 0x694]
mov byte [ebp - 4], 0xf
push eax
call fcn.004043c0
mov ecx, eax
call fcn.004052c0
lea ecx, [ebp - 0x694]
call fcn.00402340
xor ebx, ebx
lea ecx, [ebp - 0x6c4]
call fcn.00402340
lea ecx, [ebp - 0x6ac]
call fcn.00402340
jmp 0x40c219
mov ebx, 0x13
lea ecx, [ebp - 0x64c]
call fcn.00402340
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.0046c678
mov esp, ebp
pop ebp
ret 0xc
call fcn.00477ce9
call fcn.00477ce9
int3