Function at 0x40a260
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49159f
mov eax, dword fs:[0]
push eax
sub esp, 0x6d8
mov eax, dword [0x4bf434]
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 0x40a2b5
lea eax, [ebx + 0xe]
jmp 0x40ad0f
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 0x40a343
mov ecx, dword [ebp - 0x67c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a339
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a339
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
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 0x40a3d6
mov ecx, dword [ebp - 0x67c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a3cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a3cc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
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 0x40acc6
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 0x40accc
cmp esi, 8
lea eax, [ebp - 0x64c]
cmovae eax, edi
cmp word [eax + 4], 0x5c
je 0x40a44d
cmp esi, 8
lea eax, [ebp - 0x64c]
cmovae eax, edi
cmp word [eax + 4], 0x2f
jne 0x40accc
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 0x40a4f1
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x40acc6
mov ecx, dword [ebp - 0x660]
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x40a526
add word [ebp - 0x660], 0x20
mov ecx, dword [ebp - 0x660]
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x40acc6
cmp word [ebp - 0x65e], 0x3a
jne 0x40acc6
push 0x49d96c
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 0x40a573
cmp eax, 6
jne 0x40acc6
mov eax, dword [ebp - 0x6d4]
cmp byte [eax + 0x40], 0
je 0x40a686
cmp byte [ebp + 0x10], 0
je 0x40a631
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 0x40a5cd
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 0x40a60f
mov byte [ebp - 0x6c5], 0
push fcn.00401ba0
push 1
push 0x18
lea eax, [ebp - 0x664]
push eax
call fcn.00488076
cmp byte [ebp - 0x6c5], 0
je 0x40a631
mov al, 1
jmp 0x40a633
xor al, al
push eax
lea eax, [ebp - 0x64c]
push eax
call fcn.004117e0
add esp, 8
test eax, eax
jne 0x40a686
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.00412410
add esp, 8
mov byte [ebp - 0x6c5], bl
test al, al
je 0x40a68d
mov byte [ebp - 0x6c5], 0
mov dword [ebp - 4], 3
test bl, 1
je 0x40a6e4
mov edx, dword [ebp - 0x680]
and ebx, 0xfffffffe
mov dword [ebp - 0x6cc], ebx
cmp edx, 8
jb 0x40a6e4
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a6da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a6da
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
cmp byte [ebp - 0x6c5], 0
je 0x40a6fd
mov edi, dword [ebp - 0x64c]
mov esi, 3
jmp 0x40acd1
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 0x40a76a
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a760
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a760
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
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 0x40a7a7
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 0x40a805
call fcn.00403080
test eax, eax
je 0x40a805
call fcn.00403080
mov ecx, eax
call fcn.00402ff0
test eax, eax
je 0x40a805
call fcn.00403080
mov ecx, eax
call fcn.00402ff0
push 0
push 0x49daf4
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.0048818b
mov esi, eax
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x694]
mov dword [ebp - 0x6d8], esi
push eax
call fcn.004114a0
add esp, 0xc
lea ecx, [ebp - 0x64c]
push eax
call fcn.00407d00
mov edx, dword [ebp - 0x680]
cmp edx, 8
jb 0x40a8a7
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a89d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a89d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
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.0048818b
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 0x40a98c
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a982
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a982
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
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.00488194
push dword [ebp - 0x6e0]
call fcn.00488194
add esp, 8
cmp dword [edi + 0x44], 0
jne 0x40a9ee
shl esi, 0x10
or esi, 0xf
jmp 0x40ac65
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 0x40aa5b
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aa51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40aa51
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
mov eax, dword [ebp - 0x6e4]
cmp dword [eax + 0x10], 0
jne 0x40aa80
push str.EntryPoint
lea ecx, [ebp - 0x664]
call fcn.00401a00
mov byte [ebp - 4], 0xa
or ebx, 2
jmp 0x40aa96
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 0x40ab10
mov edx, dword [ebp - 0x668]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x40aaf3
mov ecx, dword [ebp - 0x67c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aae9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ab4b
push edx
push ecx
call fcn.00488034
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 0x40ab78
mov edx, dword [ebp - 0x650]
cmp edx, 8
jb 0x40ab5b
mov ecx, dword [ebp - 0x664]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ab51
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
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 0x40ab9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl esi, 0x10
or esi, 0x10
jmp 0x40ac08
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 0x40ac06
mov ecx, dword [ebp - 0x694]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40abfc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40abfc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00488034
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x6b0]
cmp edx, 8
jb 0x40ac48
mov ecx, dword [ebp - 0x6c4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac3e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40acfd
push edx
push ecx
call fcn.00488034
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 0x40aca1
mov ecx, dword [ebp - 0x6ac]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40acfd
push edx
push ecx
call fcn.00488034
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 0x40acd1
mov edi, dword [ebp - 0x64c]
mov esi, 0x13
mov eax, dword [ebp - 0x638]
cmp eax, 8
jb 0x40ad0d
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40ad03
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ad03
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.00488034
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.00488042
mov esp, ebp
pop ebp
ret 0xc