Function at 0x40b6e0
Capabilities:
Check for time delay via gettickcount
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424655
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x431074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x194], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1b8], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [ebp - 0x1ac]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [ebp - 0x1a8]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea ecx, [ebp - 0x1a4]
call dword [sym.imp.mfc140.dll_Ordinal_316]
lea eax, [ebp - 0x1a8]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1ac]
mov ecx, edi
push eax
call fcn.0040c280
lea eax, [ebp - 0x1a4]
mov ecx, edi
push eax
call fcn.0040b3e0
push 0x100
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 3
push 0
push eax
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 0xf
mov byte [ebp - 0x18c], 0
mov dword [ebp - 0x1b8], 2
call sub.VCRUNTIME140.dll_memset
push 0
push str..PhysicalDrive_d
lea eax, [ebp - 0x144]
push 0x100
push eax
call fcn.00407f60
add esp, 0x1c
lea eax, [ebp - 0x144]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x190], eax
cmp eax, 0xffffffff
je 0x40b8f0
push 0x2800
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
call sub.mfc140.dll_Ordinal_265
mov esi, eax
add esp, 4
test esi, esi
je 0x40b8e4
push 0x2800
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1bc], 0
lea eax, [ebp - 0x1bc]
push 0
push eax
push 0x2800
push esi
push 0xc
lea eax, [ebp - 0x168]
push eax
push 0x2d1400
push dword [ebp - 0x190]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40b8db
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40b8db
add eax, esi
lea ecx, [ebp - 0x15c]
push eax
call fcn.00402b90
cmp dword [ebp - 0x148], 0x10
lea eax, [ebp - 0x15c]
push dword [ebp - 0x14c]
cmovae eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x18c]
push eax
mov byte [ebp - 4], 4
call fcn.00403030
lea ecx, [ebp - 0x15c]
mov byte [ebp - 4], 3
call fcn.00402b40
push esi
call sub.mfc140.dll_Ordinal_266
add esp, 4
push dword [ebp - 0x190]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x178], 0x10
lea eax, [ebp - 0x18c]
lea ecx, [ebp - 0x1a0]
cmovae eax, dword [ebp - 0x18c]
push eax
call dword [sym.imp.mfc140.dll_Ordinal_310]
mov edx, dword [ebp - 0x178]
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x40b951
mov ecx, dword [ebp - 0x18c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b947
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b947
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00421e33
add esp, 8
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], 0xf
mov byte [ebp - 0x18c], 0
call dword [sym.imp.mfc140.dll_Ordinal_14322]
lea eax, [ebp - 0x15c]
mov ecx, edi
push eax
call fcn.0040b540
mov esi, eax
add edi, 0x30
cmp edi, esi
je 0x40b9b7
mov ecx, edi
call fcn.00402b40
movups xmm0, xmmword [esi]
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov edx, dword [ebp - 0x148]
cmp edx, 0x10
jb 0x40b9f3
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b9e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40b9e9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00421e33
add esp, 8
push 0x31
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea esi, [ebp - 0x40]
xor edi, edi
nop dword [eax + eax]
mov ecx, dword [ebp - 0x194]
lea eax, [edi - 0x7ffffffe]
push eax
call fcn.0040b170
mov eax, dword [0x431620]
lea esi, [esi + 0x10]
mov dword [esi - 0x14], eax
inc edi
mov eax, dword [0x431624]
mov dword [esi - 0x10], eax
mov eax, dword [0x431628]
mov dword [esi - 0xc], eax
mov eax, dword [0x43162c]
mov dword [esi - 8], eax
cmp edi, 3
jb 0x40ba10
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x174], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ba70
sub ecx, edx
lea eax, [ebp - 0x44]
push ecx
push eax
lea ecx, [ebp - 0x174]
call fcn.00403030
mov edi, dword [ebp - 0x194]
lea eax, [ebp - 0x174]
lea esi, [edi + 0x60]
cmp esi, eax
je 0x40babc
mov ecx, esi
call fcn.00402b40
movups xmm0, xmmword [ebp - 0x174]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x164]
movq qword [esi + 0x10], xmm0
jmp 0x40baf8
mov edx, dword [ebp - 0x160]
cmp edx, 0x10
jb 0x40baf8
mov ecx, dword [ebp - 0x174]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40baee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40baee
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00421e33
add esp, 8
lea eax, [ebp - 0x15c]
mov ecx, edi
push eax
call fcn.0040c4a0
mov edi, eax
mov eax, dword [ebp - 0x194]
add eax, 0x78
mov dword [ebp - 0x190], eax
cmp eax, edi
je 0x40bb49
mov ecx, eax
call fcn.00402b40
movups xmm0, xmmword [edi]
mov eax, dword [ebp - 0x190]
movups xmmword [eax], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [eax + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov edx, dword [ebp - 0x148]
cmp edx, 0x10
jb 0x40bb85
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bb7b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bb7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00421e33
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp - 0x194]
add eax, 0x30
cmp dword [eax + 0x14], 0x10
jb 0x40bb9c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x19c]
call dword [sym.imp.mfc140.dll_Ordinal_310]
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 7
call dword [sym.imp.mfc140.dll_Ordinal_14322]
cmp dword [esi + 0x14], 0x10
jb 0x40bbc1
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x198]
call dword [sym.imp.mfc140.dll_Ordinal_310]
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140.dll_Ordinal_14322]
lea ecx, [ebp - 0x1ac]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
mov edx, eax
mov dword [ebp - 0x14c], 0
mov ecx, edx
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bc10
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x15c]
call fcn.00403030
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x16c]
call fcn.00401aa0
mov edi, dword [ebp - 0x1b0]
lea eax, [ebp - 0x16c]
push eax
push str.macp
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.00402430
mov ecx, eax
call fcn.00401dd0
lea ecx, [ebp - 0x16c]
call fcn.00401d00
mov edx, dword [ebp - 0x148]
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x40bcab
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bca1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bca1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00421e33
add esp, 8
lea ecx, [ebp - 0x1a8]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
mov edx, eax
mov dword [ebp - 0x14c], 0
mov ecx, edx
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bce0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x15c]
call fcn.00403030
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x16c]
call fcn.00401aa0
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 0xc
push eax
push 0x427aa4
mov ecx, edi
call fcn.00402430
mov ecx, eax
call fcn.00401dd0
lea ecx, [ebp - 0x16c]
call fcn.00401d00
mov edx, dword [ebp - 0x148]
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x40bd75
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bd6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bd6b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00421e33
add esp, 8
lea ecx, [ebp - 0x1a4]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
mov edx, eax
mov dword [ebp - 0x14c], 0
mov ecx, edx
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bda3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x15c]
call fcn.00403030
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0x16c]
call fcn.00401aa0
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 0xe
push eax
push str.uuid
mov ecx, edi
call fcn.00402430
mov ecx, eax
call fcn.00401dd0
lea ecx, [ebp - 0x16c]
call fcn.00401d00
mov edx, dword [ebp - 0x148]
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x40be38
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40be2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40be2e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00421e33
add esp, 8
lea ecx, [ebp - 0x1a0]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
mov edx, eax
mov dword [ebp - 0x14c], 0
mov ecx, edx
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40be66
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x15c]
call fcn.00403030
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x16c]
call fcn.00401aa0
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 0x10
push eax
push str.disk0
mov ecx, edi
call fcn.00402430
mov ecx, eax
call fcn.00401dd0
lea ecx, [ebp - 0x16c]
call fcn.00401d00
mov edx, dword [ebp - 0x148]
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x40befb
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bef1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bef1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00421e33
add esp, 8
lea ecx, [ebp - 0x19c]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
mov edx, eax
mov dword [ebp - 0x14c], 0
mov ecx, edx
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bf30
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x15c]
call fcn.00403030
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x16c]
call fcn.00401aa0
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 0x12
push eax
push str.cpuid
mov ecx, edi
call fcn.00402430
mov ecx, eax
call fcn.00401dd0
lea ecx, [ebp - 0x16c]
call fcn.00401d00
mov edx, dword [ebp - 0x148]
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x40bfc5
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40bfbb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40bfbb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00421e33
add esp, 8
lea ecx, [ebp - 0x198]
call dword [sym.imp.mfc140.dll_Ordinal_1661]
mov edx, eax
mov dword [ebp - 0x14c], 0
mov ecx, edx
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bff3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x15c]
call fcn.00403030
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x16c]
call fcn.00401aa0
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 0x14
push eax
push str.cputype
mov ecx, edi
call fcn.00402430
mov ecx, eax
call fcn.00401dd0
lea ecx, [ebp - 0x16c]
call fcn.00401d00
mov edx, dword [ebp - 0x148]
mov byte [ebp - 4], 8
cmp edx, 0x10
jb 0x40c088
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c07e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c07e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00421e33
add esp, 8
push dword [ebp - 0x190]
lea ecx, [ebp - 0x16c]
call fcn.00401aa0
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 0x15
push eax
push 0x427ac8
mov ecx, edi
call fcn.00402430
mov ecx, eax
call fcn.00401dd0
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 8
call fcn.00401d00
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
push eax
lea ecx, [ebp - 0x16c]
call fcn.004019c0
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 0x16
push eax
push str.codepage
mov ecx, edi
call fcn.00402430
mov ecx, eax
call fcn.00401dd0
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 8
call fcn.00401d00
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x190], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40c13c
lea eax, [ebp - 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x190], 0
lea ecx, [ebp - 0x16c]
setne byte [ebp - 0x1b0]
push dword [ebp - 0x1b0]
call fcn.00401b60
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 0x17
push eax
push 0x427ad8
mov ecx, edi
call fcn.00402430
mov ecx, eax
call fcn.00401dd0
lea ecx, [ebp - 0x16c]
mov byte [ebp - 4], 8
call fcn.00401d00
lea eax, [ebp - 0x15c]
mov ecx, edi
push eax
call fcn.00402900
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x18
jb 0x40c1a2
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x1b4]
call dword [sym.imp.mfc140.dll_Ordinal_310]
mov edx, dword [ebp - 0x148]
cmp edx, 0x10
jb 0x40c1eb
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c1e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40c1e1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00421e33
add esp, 8
mov esi, dword [ebp - 0x1c0]
lea ecx, [ebp - 0x1b4]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x198]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x19c]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x1a0]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x1a4]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x1a8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp - 0x1ac]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421e64
mov esp, ebp
pop ebp
ret 8