Function at 0x431f00
Capabilities:
Get disk information
Get disk size
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
push ebx
push esi
push edi
push eax
xor eax, eax
pop eax
je 0x431f14
invalid
mov bl, byte [ebp + 8]
movsx esi, bl
push esi
call fcn.00426194
add esp, 4
test eax, eax
jne 0x431f33
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ax, word [0x4af4d0]
mov ecx, 0x1f
mov word [ebp - 0x94], ax
xor eax, eax
lea edi, [ebp - 0x92]
push esi
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x94]
push str.___C:
push ecx
stosw word es:[edi], ax
call fcn.00426734
add esp, 0xc
lea edx, [ebp - 0x94]
push 0x4a3938
push edx
push 0
call fcn.0043ac10
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
jne 0x431f8e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4a77e0]
mov cl, byte [0x4af4d4]
mov dword [ebp - 4], eax
mov byte [ebp - 0x19c], cl
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x19b]
lea edx, [ebp - 0x19c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x19c]
rep stosd dword es:[edi], eax
push 0x104
push edx
push 0
push 0
stosb byte es:[edi], al
push 0
push 0
lea eax, [ebp - 4]
push 0
push eax
mov dword [ebp - 0xc], 0xffffffff
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x432232
lea ecx, [ebp - 0x19c]
push 0x4a77e4
push ecx
call fcn.00426ed0
mov ebx, dword [ebp + 0xc]
add esp, 8
neg eax
sbb al, al
lea edx, [ebp - 0x54]
and al, 4
push 0x40
add al, 7
push edx
mov byte [ebx], al
push 0
push 0
lea eax, [ebp - 0x14]
push 0x560000
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_ZwDeviceIoControlFile]
test eax, eax
jge 0x432041
cmp eax, 0x80000005
jne 0x432232
cmp dword [ebp - 0x54], 1
jne 0x432232
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebx + 8], edx
mov edx, dword [ebp - 0x38]
mov dword [ebx + 0x10], ecx
mov cl, byte [ebp + 8]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x14], edx
mov eax, dword [0x4a77e0]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 4]
mov byte [ebp - 0x10], cl
lea eax, [ebp - 4]
push edx
lea ecx, [ebp + 0xc]
push eax
lea edx, [ebp + 8]
push ecx
lea eax, [ebp - 0x10]
push edx
push eax
mov dword [ebp + 8], 8
mov dword [ebp + 0xc], 0x200
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x432232
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0043b1f0
test al, al
je 0x432232
mov edx, dword [ebp + 8]
push edx
call fcn.0043b240
test al, al
je 0x432232
mov cl, byte [ebx]
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp cl, 7
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edx
sete cl
push eax
xor eax, eax
pop eax
je 0x4320ec
invalid
test cl, cl
je 0x4320f8
lea eax, [edx + edx]
jmp 0x4321fd
push edi
call fcn.00478957
mov esi, eax
add esp, 4
test esi, esi
je 0x432232
mov eax, dword [ebp - 8]
push 0
push 0
push edi
push esi
push eax
call fcn.0043ac80
cmp eax, edi
push esi
je 0x43212c
call fcn.00478980
add esp, 4
jmp 0x432232
call fcn.00443dd0
add esp, 4
test al, al
jne 0x432146
push esi
call fcn.00478980
add esp, 4
jmp 0x432232
mov cx, word [esi + 0xb]
mov dl, byte [esi + 0xd]
mov ax, word [esi + 0xe]
mov word [ebp - 0x44], cx
mov cl, byte [esi + 0x10]
mov byte [ebp - 0x42], dl
mov dx, word [esi + 0x11]
mov word [ebp - 0x40], ax
mov ax, word [esi + 0x16]
mov byte [ebp - 0x3e], cl
mov ecx, dword [esi + 0x24]
push esi
mov word [ebp - 0x3c], dx
mov word [ebp - 0x36], ax
mov dword [ebp - 0x28], ecx
call fcn.00478980
mov eax, dword [ebp - 0x44]
add esp, 4
and eax, 0xffff
cmp eax, edi
jne 0x432232
mov edx, dword [ebp - 0x42]
mov ecx, dword [ebp + 8]
and edx, 0xff
cmp edx, ecx
jne 0x432232
cmp word [ebp - 0x36], 0
jne 0x4321b4
mov ecx, eax
imul ecx, dword [ebp - 0x28]
jmp 0x4321c0
mov ecx, dword [ebp - 0x36]
and ecx, 0xffff
imul ecx, eax
mov esi, dword [ebp - 0x3e]
xor edx, edx
and esi, 0xff
push edx
imul esi, ecx
mov ecx, dword [ebp - 0x40]
push edi
and ecx, 0xffff
imul ecx, eax
mov eax, dword [ebp - 0x3c]
add esi, ecx
and eax, 0xffff
xor ecx, ecx
shl eax, 5
add esi, eax
add esi, edi
adc ecx, edx
sub esi, 1
sbb ecx, edx
push ecx
push esi
call fcn.004714a0
test eax, eax
je 0x432232
mov edx, dword [ebx + 0x1c]
push 0x11
shl edx, 1
sub eax, edx
mov edx, dword [ebp - 8]
mov dword [ebx + 0x20], eax
lea eax, [ebp + 8]
push 4
lea ecx, [ebp - 0x14]
push eax
push ecx
push edx
call dword [sym.imp.ntdll.dll_ZwQueryInformationFile]
test eax, eax
jl 0x432232
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 0
mov dword [ebx + 0x24], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043ac60
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8