Function at 0x40a2a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490c4f
mov eax, dword fs:[0]
push eax
sub esp, 0x6d8
mov eax, dword [0x4be434]
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 - 0x6d4], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6cc], ebx
mov dword [ebp - 0x6e4], eax
cmp dword [esi + 0x10], ebx
jne 0x40a2f5
lea eax, [ebx + 0xe]
jmp 0x40ad4f
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.00407630
lea eax, [ebp - 0x67c]
mov dword [ebp - 4], 0
push eax
call fcn.00403080
mov ecx, eax
call fcn.00404290
mov edx, dword [ebp - 0x668]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x40a383
mov ecx, dword [ebp - 0x67c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a379
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a379
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
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.00407630
lea eax, [ebp - 0x67c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x64c]
push esi
push eax
call fcn.00408600
add esp, 0xc
mov edx, dword [ebp - 0x668]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40a416
mov ecx, dword [ebp - 0x67c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a40c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a40c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
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 0x40ad06
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 0x40ad0c
cmp esi, 8
lea eax, [ebp - 0x64c]
cmovae eax, edi
cmp word [eax + 4], 0x5c
je 0x40a48d
cmp esi, 8
lea eax, [ebp - 0x64c]
cmovae eax, edi
cmp word [eax + 4], 0x2f
jne 0x40ad0c
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 sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
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 dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea ecx, [ebp - 0x660]
add esp, 0x48
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a531
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x40ad06
mov ecx, dword [ebp - 0x660]
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x40a566
add word [ebp - 0x660], 0x20
mov ecx, dword [ebp - 0x660]
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x40ad06
cmp word [ebp - 0x65e], 0x3a
jne 0x40ad06
push 0x49c984
lea eax, [ebp - 0x660]
push 0xa
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x40a5b3
cmp eax, 6
jne 0x40ad06
mov eax, dword [ebp - 0x6d4]
cmp byte [eax + 0x40], 0
je 0x40a6c6
cmp byte [ebp + 0x10], 0
je 0x40a671
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.00407630
lea ecx, [ebp - 0x664]
cmp dword [ecx + 0x14], 8
lea edi, [ecx + 0x10]
jb 0x40a60d
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.00404b40
sub esi, edi
mov byte [ebp - 4], 3
add esp, 0x14
mov byte [ebp - 0x6c5], 1
cmp esi, eax
je 0x40a64f
mov byte [ebp - 0x6c5], 0
push fcn.00401ba0
push 1
push 0x18
lea eax, [ebp - 0x664]
push eax
call fcn.00487736
cmp byte [ebp - 0x6c5], 0
je 0x40a671
mov al, 1
jmp 0x40a673
xor al, al
push eax
lea eax, [ebp - 0x64c]
push eax
call fcn.00411820
add esp, 8
test eax, eax
jne 0x40a6c6
push str.md5.ini
lea ecx, [ebp - 0x694]
call fcn.00401a00
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
call fcn.00412450
add esp, 8
mov byte [ebp - 0x6c5], bl
test al, al
je 0x40a6cd
mov byte [ebp - 0x6c5], 0
mov dword [ebp - 4], 3
test bl, 1
je 0x40a724
mov edx, dword [ebp - 0x680]
and ebx, 0xfffffffe
mov dword [ebp - 0x6cc], ebx
cmp edx, 8
jb 0x40a724
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a71a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a71a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
cmp byte [ebp - 0x6c5], 0
je 0x40a73d
mov edi, dword [ebp - 0x64c]
mov esi, 3
jmp 0x40ad11
push str.TD_WPS_PROCESS_ENTRY_VERIFIED
lea ecx, [ebp - 0x694]
call fcn.00401a00
lea eax, [ebp - 0x694]
mov byte [ebp - 4], 6
push eax
call fcn.00403080
mov ecx, eax
call fcn.00404290
mov edx, dword [ebp - 0x680]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40a7aa
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a7a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a7a0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x6ac]
push eax
call fcn.00408350
add esp, 8
mov ecx, dword [ebp - 0x69c]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x40a7e7
lea eax, [ebp - 0x6ac]
push eax
call fcn.00403080
mov ecx, eax
call fcn.00403bf0
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.00404b40
add esp, 0x14
cmp eax, 0xffffffff
je 0x40a845
call fcn.00403080
test eax, eax
je 0x40a845
call fcn.00403080
mov ecx, eax
call fcn.00402ff0
test eax, eax
je 0x40a845
call fcn.00403080
mov ecx, eax
call fcn.00402ff0
push 0
push 0x49cb0c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
lea eax, [ebp - 0x6dc]
mov dword [ebp - 0x6dc], 0
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetDllDirectoryW]
mov dword [ebp - 0x6d0], eax
xor ecx, ecx
inc eax
mov edi, 2
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048784b
mov esi, eax
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x694]
mov dword [ebp - 0x6d8], esi
push eax
call fcn.004114e0
add esp, 0xc
lea ecx, [ebp - 0x64c]
push eax
call fcn.00407d00
mov edx, dword [ebp - 0x680]
cmp edx, 8
jb 0x40a8e7
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a8dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a8dd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
mov eax, dword [ebp - 0x63c]
xor ecx, ecx
inc eax
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048784b
mov ecx, dword [ebp - 0x6d0]
mov edi, eax
mov dword [ebp - 0x6e0], edi
lea ecx, [ecx*2 + 2]
push ecx
push 0
push esi
call sub.VCRUNTIME140.dll_memset
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 dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0x1c
push esi
push dword [ebp - 0x6d0]
call dword [sym.imp.KERNEL32.dll_GetDllDirectoryW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push str.TD_WPS_PROCESS_ENTRY_DLL_LOAD
lea ecx, [ebp - 0x694]
call fcn.00401a00
lea eax, [ebp - 0x694]
mov byte [ebp - 4], 8
push eax
call fcn.00403080
mov ecx, eax
call fcn.00404290
mov edx, dword [ebp - 0x680]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x40a9cc
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a9c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a9c2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
cmp dword [ebp - 0x638], 8
lea eax, [ebp - 0x64c]
cmovae eax, dword [ebp - 0x64c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [ebp - 0x6d4]
mov dword [edi + 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x6d8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push dword [ebp - 0x6d8]
call fcn.00487854
push dword [ebp - 0x6e0]
call fcn.00487854
add esp, 8
cmp dword [edi + 0x44], 0
jne 0x40aa2e
shl esi, 0x10
or esi, 0xf
jmp 0x40aca5
push str.TD_WPS_PROCESS_ENTRY_DLL_LOADED
lea ecx, [ebp - 0x694]
call fcn.00401a00
lea eax, [ebp - 0x694]
mov byte [ebp - 4], 9
push eax
call fcn.00403080
mov ecx, eax
call fcn.00404290
mov edx, dword [ebp - 0x680]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x40aa9b
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aa91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40aa91
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
mov eax, dword [ebp - 0x6e4]
cmp dword [eax + 0x10], 0
jne 0x40aac0
push str.EntryPoint
lea ecx, [ebp - 0x664]
call fcn.00401a00
mov byte [ebp - 4], 0xa
or ebx, 2
jmp 0x40aad6
push eax
lea ecx, [ebp - 0x67c]
call fcn.00402080
mov dword [ebp - 4], 0xb
or ebx, 4
push eax
lea ecx, [ebp - 0x6c4]
mov dword [ebp - 0x6cc], ebx
call fcn.00402080
mov dword [ebp - 4], 0xd
test bl, 4
je 0x40ab50
mov edx, dword [ebp - 0x668]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x40ab33
mov ecx, dword [ebp - 0x67c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab8b
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x66c], 0
mov dword [ebp - 0x668], 7
mov word [ebp - 0x67c], ax
mov byte [ebp - 4], 0xe
test bl, 2
je 0x40abb8
mov edx, dword [ebp - 0x650]
cmp edx, 8
jb 0x40ab9b
mov ecx, dword [ebp - 0x664]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ab91
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 7
mov word [ebp - 0x664], ax
lea eax, [ebp - 0x6c4]
mov ecx, edi
push eax
call fcn.00408150
mov dword [edi + 0x48], eax
test eax, eax
jne 0x40abdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 0x10
jmp 0x40ac48
push str.TD_WPS_PROCESS_ENTRY_DLL_FIND_ENTRY
lea ecx, [ebp - 0x694]
call fcn.00401a00
lea eax, [ebp - 0x694]
mov byte [ebp - 4], 0xf
push eax
call fcn.00403080
mov ecx, eax
call fcn.00404290
mov edx, dword [ebp - 0x680]
cmp edx, 8
jb 0x40ac46
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac3c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ac3c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004876f4
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x6b0]
cmp edx, 8
jb 0x40ac88
mov ecx, dword [ebp - 0x6c4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad3d
push edx
push ecx
call fcn.004876f4
add esp, 8
xor eax, eax
mov dword [ebp - 0x6b4], 0
mov dword [ebp - 0x6b0], 7
mov word [ebp - 0x6c4], ax
mov edx, dword [ebp - 0x698]
cmp edx, 8
jb 0x40ace1
mov ecx, dword [ebp - 0x6ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40acd7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ad3d
push edx
push ecx
call fcn.004876f4
add esp, 8
mov edi, dword [ebp - 0x64c]
xor eax, eax
mov dword [ebp - 0x69c], 0
mov dword [ebp - 0x698], 7
mov word [ebp - 0x6ac], ax
jmp 0x40ad11
mov edi, dword [ebp - 0x64c]
mov esi, 0x13
mov eax, dword [ebp - 0x638]
cmp eax, 8
jb 0x40ad4d
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40ad43
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ad43
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.004876f4
add esp, 8
mov eax, esi
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.00487702
mov esp, ebp
pop ebp
ret 0xc