Function at 0x40bea0
Capabilities:
Get disk information
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x48d6a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov eax, dword [esp + 0x24c]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push eax
lea ecx, [esp + 0x14]
call fcn.0047a60c
push 1
push 0x5c
lea ecx, [esp + 0x20]
mov dword [esp + 0x258], 0
call fcn.00472b33
lea ecx, [esp + 0x1c]
push 1
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x258], 1
call fcn.00472e4b
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
push edx
push eax
call fcn.00452da8
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call fcn.0047a59e
lea ecx, [esp + 0x18]
mov byte [esp + 0x250], 0
call fcn.0047a59e
test bl, bl
je 0x40bf43
push 0x4af7a8
lea ecx, [esp + 0x14]
call fcn.0047a906
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x101
lea eax, [esp + 0xec]
push 0x160
push eax
push 0
push ecx
call esi
test eax, eax
je 0x40bf92
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xec]
push 0x103
lea edx, [esp + 0xec]
push 0x160
push edx
push 0
push eax
mov dword [esp + 0x2c], edi
call esi
test eax, eax
jne 0x40bfba
push str.Error_Getting_SystemFileInfo_
lea ecx, [ebp + 0x48]
call fcn.0047a727
lea ecx, [esp + 0x10]
mov dword [esp + 0x250], 0xffffffff
call fcn.0047a59e
xor eax, eax
jmp 0x40c140
mov ebx, dword [esp + 0xec]
lea ecx, [esp + 0x1c]
push 1
push ecx
lea ecx, [esp + 0x18]
call fcn.00472e4b
mov eax, dword [eax]
push 0x4af7a8
push eax
call fcn.00452da8
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete byte [esp + 0x17]
call fcn.0047a59e
mov al, byte [esp + 0x17]
test al, al
je 0x40c00d
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x14]
mov eax, dword [edx - 8]
dec eax
push eax
call fcn.0047aa70
mov esi, dword [esp + 0x258]
mov eax, dword [ebp + 0x50]
cmp esi, eax
mov eax, dword [esp + 0x10]
push eax
jne 0x40c109
lea ecx, [esp + 0x88]
push 0x4af7b8
push ecx
call fcn.00452382
add esp, 0xc
lea edx, [esp + 0x20]
lea eax, [esp + 0x84]
push 0
push 0
push 0
push 0
push 0
push 0x64
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
test eax, eax
jne 0x40c082
mov edi, 0x4b5218
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40c0be
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov esi, 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jbe 0x40c0be
movsx ecx, byte [esp + esi + 0x20]
push ecx
call fcn.00452e57
mov byte [esp + esi + 0x24], al
add esp, 4
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x40c099
mov edx, dword [esp + 0x10]
movsx eax, byte [edx]
push eax
call fcn.00452c6d
lea ecx, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x90]
push str._s___c:_
push edx
call fcn.00452382
mov eax, dword [esp + 0x26c]
mov ecx, dword [esp + 0x2c]
add esp, 0x14
lea edx, [esp + 0x84]
push 0xffff0002
push eax
push 0
push 0
push 0
push ebx
push ecx
push edx
jmp 0x40c11f
mov ecx, ebp
call fcn.0040c160
push 0xffff0002
push esi
push 0
push 0
push 0
push ebx
push edi
push eax
push 0x23
mov ecx, ebp
call fcn.00473cac
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x250], 0xffffffff
call fcn.0047a59e
mov eax, esi
mov ecx, dword [esp + 0x248]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x244
ret 8