Function at 0x413639
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x1b0
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
push 0x10000
mov esi, ecx
push 8
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x138], 0x5c3a41
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov dword [ebp - 0x128], eax
cmp eax, ecx
je 0x413a3c
push ebx
push edi
lea edi, [eax + 0x104]
mov dword [ebp - 0x11c], edi
mov ebx, 0x400
add edi, ebx
mov dword [ebp - 0x100], edi
mov eax, 0x1000
add edi, eax
mov dword [ebp - 0xfc], edi
add edi, eax
mov dword [ebp - 0x120], edi
add edi, eax
mov dword [ebp - 0x124], edi
add edi, ebx
lea eax, [ebp + 0x68]
mov dword [ebp - 0x130], edi
push eax
push dword [esi + 0xc]
add edi, ebx
mov dword [ebp - 0x134], edi
add edi, ebx
mov byte [ebp - 0xe0], cl
mov byte [ebp - 0xa0], cl
mov byte [ebp - 0x20], cl
mov dword [ebp + 0x64], ecx
mov dword [ebp + 0x60], ecx
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x6c], ecx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x413705
lea eax, [ebp + 0x68]
push eax
call fcn.004012a0
pop ecx
call fcn.00406ca2
cmp dword [ebp + 0x7c], 1
jne 0x41377f
mov ecx, dword [ebp - 0x120]
add esi, 0x128
call fcn.00413502
mov eax, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x124]
lea ecx, [eax + 0x1128]
mov eax, dword [eax + 0x1174]
mov dword [ebp + 0x60], eax
xor eax, eax
push eax
push eax
push ebx
push esi
push 0xffffffffffffffff
push dword [ebp - 0x120]
mov dword [ebp - 0x12c], ecx
push eax
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x41376f
push ebx
push dword [ebp - 0x120]
push esi
call fcn.0046fe9f
add esp, 0xc
mov al, byte [esi]
mov esi, dword [ebp - 0x13c]
mov byte [ebp - 0x138], al
jmp 0x4137e5
cmp dword [ebp + 0x7c], 5
jne 0x413794
mov eax, dword [esi + 0x12c]
inc eax
push eax
push str.Partition_Table_of_Harddisk:_d
jmp 0x4137ab
cmp dword [ebp + 0x7c], 4
jne 0x413a25
movsx eax, byte [esi + 0x128]
push eax
push str.Boot_Sector:_c
push dword [ebp - 0x128]
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x128]
lea eax, [esi + 0x1b0]
push ebx
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x120]
push ecx
xor edx, edx
push eax
mov dword [ebp - 0x124], ecx
mov word [eax], dx
call fcn.0046c445
add esp, 0x18
cmp dword [esi + 8], 8
jne 0x41382b
mov eax, dword [esi + 0x18]
sub eax, 0x494e5443
je 0x413814
sub eax, 0xc
je 0x41380d
sub eax, 3
je 0x413806
push str.Scan_failure_detected.
jmp 0x413819
push str.Scan_crash__R__detected.
jmp 0x413819
push str.Scan_crash__O__detected.
jmp 0x413819
push str.Scan_crash__C__detected.
push dword [ebp - 0x11c]
call dword [sym.imp.USER32.dll_wsprintfA]
mov byte [esi + 0x14], 0
jmp 0x41387e
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x413860
cmp byte [eax], 0
je 0x413860
cmp byte [esi + 0x10], 0
push eax
jne 0x413849
push dword [0x49cb24]
jmp 0x41384f
push dword [0x49cb58]
push dword [ebp - 0x11c]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x413880
cmp byte [esi + 0x13], 8
jne 0x41386d
push str.Archive_contains_infected_files
jmp 0x413872
push str.Some_unknown_problem__
push dword [ebp - 0x11c]
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x130]
push ecx
mov byte [eax], 0
push eax
mov byte [ecx], 0
push dword [esi + 0xc]
call fcn.0041266c
lea ebx, [edi + 0x400]
push ebx
push edi
push dword [ebp - 0x130]
mov byte [edi], 0
mov byte [ebx], 0
call fcn.004125e4
mov eax, dword [ebp + 0x7c]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0xf0], eax
add esp, 0x18
lea eax, [ebp - 0x138]
push eax
mov dword [ebp - 0x114], esi
mov dword [ebp - 0xec], edi
mov dword [ebp - 0xe8], ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp dword [ebp + 0x7c], 1
mov dword [ebp - 0xe4], eax
jne 0x41397d
lea eax, [ebp - 0xe0]
push eax
push dword [ebp - 0x124]
call fcn.0041258c
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x124]
call fcn.00407b51
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x124]
call fcn.00407b85
add esp, 0x18
test byte [ebp + 0x60], 2
je 0x41397d
lea eax, [ebp - 0x118]
push eax
call fcn.004155d3
pop ecx
cmp byte [esi + 0x14], 0
je 0x41398e
lea edi, [ebp - 0x118]
call fcn.0041316d
cmp byte [0x49c17d], 0
je 0x4139a4
lea eax, [ebp - 0x118]
push eax
call fcn.00414f23
pop ecx
cmp byte [0x49c17c], 0
je 0x4139ba
lea eax, [ebp - 0x118]
push eax
call fcn.00415852
pop ecx
mov eax, dword [ebp - 0x108]
test eax, eax
je 0x4139f1
cmp byte [eax], 0
je 0x4139f1
cmp dword [ebp + 0x7c], 1
jne 0x4139e1
cmp dword [ebp - 0xe4], 3
je 0x4139e1
cmp dword [ebp - 0xe4], 2
jne 0x4139ec
push eax
call fcn.0041285e
pop ecx
test eax, eax
jne 0x4139f1
call fcn.00412798
cmp dword [0x49c44c], 0
je 0x413a25
cmp dword [ebp + 0x7c], 1
jne 0x413a25
cmp byte [ebp - 0xf7], 7
je 0x413a25
push dword [ebp - 0x120]
call fcn.0040779e
pop ecx
test eax, eax
je 0x413a25
push dword [ebp - 0x120]
call fcn.0040759a
pop ecx
push dword [ebp - 0x128]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebx
push esi
call fcn.00411f08
pop ecx
mov ecx, dword [ebp + 0x70]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0046c1d2
add ebp, 0x74
leave
ret