Function at 0x41ae70
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x29c
push ebx
push ebp
push esi
push edi
mov esi, ecx
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x50], eax
mov eax, dword [0x437348]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2b0]
xor ebp, ebp
cmp eax, ebp
jne 0x41b25c
mov edx, dword [esi + 0x24]
lea ebx, [esi + 0x24]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push 0xaf
push eax
call fcn.004249d0
mov ecx, dword [esp + 0x1c]
mov esi, eax
add esp, 0xc
mov eax, dword [esi]
cmp ecx, eax
je 0x41af27
cmp dword [ecx - 0xc], ebp
jge 0x41aef9
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x41aefe
cmp dword [eax - 0xc], ebp
jge 0x41af0e
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00402510
jmp 0x41af27
lea ecx, [esp + 0x10]
call fcn.00402400
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x43734c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41af56
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41af56
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004292c0
add esp, 4
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
sub eax, edx
mov ecx, 7
cdq
and edx, 3
lea edi, [esp + 0x20]
add edx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, 5
sar edx, 2
cmp edx, 0xffffffff
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ebp
je 0x41af95
mov eax, 7
mov dword [esp + 0x24], edx
or al, 8
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
push edx
push ebp
push 0x101b
push eax
mov dword [esp + 0x40], ebp
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
push 0xb0
push ecx
call fcn.004249d0
mov ecx, dword [esp + 0x1c]
mov esi, eax
add esp, 0xc
mov eax, dword [esi]
cmp ecx, eax
je 0x41b013
cmp dword [ecx - 0xc], ebp
jge 0x41afe5
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x41afea
cmp dword [eax - 0xc], ebp
jge 0x41affa
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00402510
jmp 0x41b013
lea ecx, [esp + 0x10]
call fcn.00402400
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41b042
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b042
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
sub eax, ecx
mov ecx, 7
cdq
and edx, 3
lea edi, [esp + 0x20]
add edx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov ebp, 1
sar edx, 2
cmp edx, 0xffffffff
mov eax, 5
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ebp
je 0x41b086
mov eax, 7
mov dword [esp + 0x24], edx
or al, 8
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
push edx
push ebp
push 0x101b
push eax
mov dword [esp + 0x40], ebp
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
push 0xb1
push ecx
call fcn.004249d0
mov ecx, dword [esp + 0x1c]
mov esi, eax
add esp, 0xc
mov eax, dword [esi]
cmp ecx, eax
je 0x41b108
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x41b0d8
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x41b0df
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x41b0ef
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00402510
jmp 0x41b108
lea ecx, [esp + 0x10]
call fcn.00402400
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41b137
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b137
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
sub eax, edx
mov ecx, 7
cdq
and edx, 3
lea edi, [esp + 0x20]
add edx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, 5
sar edx, 2
cmp edx, 0xffffffff
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ebp
je 0x41b176
mov eax, 7
mov dword [esp + 0x24], edx
lea edx, [esp + 0x1c]
or al, 8
push edx
push 2
mov ecx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], 2
call fcn.0041c270
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push 0xb2
push eax
call fcn.004249d0
mov ecx, dword [esp + 0x1c]
mov esi, eax
add esp, 0xc
mov eax, dword [esi]
cmp ecx, eax
je 0x41b1f6
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x41b1c6
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x41b1cd
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x41b1dd
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00402510
jmp 0x41b1f6
lea ecx, [esp + 0x10]
call fcn.00402400
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x43734c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41b225
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41b225
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004292c0
add esp, 4
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
sub eax, ecx
mov ecx, dword [esp + 0x10]
cdq
and edx, 3
push 3
add eax, edx
sar eax, 2
push eax
push ebp
push ecx
push 3
mov ecx, ebx
call fcn.0041c190
mov edx, dword [ebx]
push 0x20
push 0
push 0x1036
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xa5]
mov byte [esp + 0xa4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1a9]
mov byte [esp + 0x1a8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1a8]
xor edi, edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor esi, esi
mov dword [esp + 0x4c], eax
test eax, eax
mov dword [esp + 0x14], esi
jbe 0x41b43d
mov al, byte [esp + esi + 0x1a8]
test al, al
jne 0x41b42c
lea ecx, [esp + esi + 0x1a5]
push 3
lea edx, [esp + 0xa8]
push ecx
push edx
mov byte [esp + esi + 0x1b4], 0x7c
call fcn.0042a8c0
add esp, 0xc
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x41b42c
mov eax, dword [esp + 0x50]
test eax, eax
je 0x41b34c
lea ecx, [esp + 0x74]
lea edx, [esp + 0x64]
push ecx
push edx
lea ecx, [esp + 0x74]
lea edx, [esp + 0xac]
push ecx
push edx
call eax
mov edx, dword [esp + 0x68]
mov ebx, eax
mov eax, dword [esp + 0x64]
mov ecx, 0x14
call fcn.0042abb0
mov edx, dword [esp + 0x70]
mov esi, eax
mov eax, dword [esp + 0x6c]
mov ecx, 0x14
call fcn.0042abb0
jmp 0x41b38b
lea eax, [esp + 0x60]
lea ecx, [esp + 0x5c]
push eax
lea edx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0xb0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ebx, eax
mov eax, dword [esp + 0x54]
imul eax, dword [esp + 0x58]
mov esi, eax
imul eax, dword [esp + 0x5c]
imul esi, dword [esp + 0x60]
shr esi, 0x14
shr eax, 0x14
test ebx, ebx
mov ebp, eax
je 0x41b428
mov eax, dword [esp + 0x2b0]
mov byte [esp + 0xa6], 0
test eax, eax
jne 0x41b3d3
lea edx, [esp + 0xa4]
push edx
call fcn.0042a6b5
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esp, 4
lea eax, [esp + 0xa4]
push eax
push ecx
lea ecx, [edx + 0x24]
call fcn.0041c210
mov edi, eax
push esi
lea eax, [esp + 0x80]
push 0x43733c
push eax
call fcn.00429590
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x7c]
lea esi, [ecx + 0x24]
push edx
push 1
push edi
mov ecx, esi
call fcn.0041c130
push ebp
lea eax, [esp + 0x94]
push 0x43733c
push eax
call fcn.00429590
add esp, 0xc
lea ecx, [esp + 0x90]
push ecx
push 2
push edi
mov ecx, esi
call fcn.0041c130
inc edi
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
inc esi
cmp esi, eax
mov dword [esp + 0x14], esi
jb 0x41b2b9
lea ecx, [esp + 0x10]
call fcn.004024e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x29c
ret 4