Function at 0x402250
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x452440]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
mov ecx, dword [ebp + 0x1c8]
push ebx
push edi
xor eax, eax
mov word [ebp + 0x1b0], ax
lea edi, [ebp + 0x1b2]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
cmp ecx, ebx
jne 0x4022d2
cmp byte [0x4549b0], 1
jne 0x4022cb
push 0x208
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00425220
lea eax, [ebp - 0x58]
push str.DEBUG_CHECK:_IsDiskSpaceAvailable:_not_enough_diskspace.__Null_Path_
push eax
call fcn.00426df4
lea eax, [ebp - 0x58]
push eax
push 0x673
push str..QHUnPack.cpp
push str.c:logsqhunpack.log
call fcn.004014fc
add esp, 0x24
xor eax, eax
jmp 0x4024e1
mov edi, dword [ebp + 0x1cc]
cmp edi, ebx
jg 0x402320
cmp byte [0x4549b0], 1
jne 0x4022cb
push 0x208
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00425220
push edi
lea eax, [ebp - 0x58]
push str.DEBUG_CHECK:_IsDiskSpaceAvailable:_SizeToCheck___0__SizeToCheck__ld_
push eax
call fcn.00426df4
lea eax, [ebp - 0x58]
push eax
push 0x683
push str..QHUnPack.cpp
push str.c:logsqhunpack.log
call fcn.004014fc
add esp, 0x28
jmp 0x4022cb
mov ax, word [ecx]
mov word [ebp + 0x1b0], ax
mov ax, word [ecx + 2]
mov word [ebp + 0x1b2], ax
mov ax, word [ecx + 4]
push esi
mov word [ebp + 0x1b4], ax
xor eax, eax
push 0x43f410
mov word [ebp + 0x1b6], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x402411
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402411
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp + 0x1b0]
push ecx
call eax
test eax, eax
jne 0x4023c2
cmp byte [0x4549b0], 1
jne 0x4024d9
push 0x208
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00425220
lea eax, [ebp - 0x58]
push str.DEBUG_CHECK:_IsDiskSpaceAvailable:_GetDiskFreeSpaceEx_failed
push eax
call fcn.00426df4
lea eax, [ebp - 0x58]
push eax
push 0x6b1
jmp 0x402465
mov esi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
shrd esi, eax, 0x14
shr eax, 0x14
cmp esi, edi
jge 0x4024dd
cmp byte [0x4549b0], 1
jne 0x4024d9
push 0x208
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00425220
push edi
push esi
lea eax, [ebp - 0x58]
push str.DEBUG_CHECK:_IsDiskSpaceAvailable:_not_enough_diskspace__lCurrAvailable__ld___lSizeToCheck__ld_
push eax
call fcn.00426df4
lea eax, [ebp - 0x58]
push eax
push 0x6c6
jmp 0x4024c7
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x402479
cmp byte [0x4549b0], 1
jne 0x4024d9
push 0x208
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00425220
lea eax, [ebp - 0x58]
push str.DEBUG_CHECK:_IsDiskSpaceAvailable:_GetDiskFreeSpace_failed
push eax
call fcn.00426df4
lea eax, [ebp - 0x58]
push eax
push 0x6e0
push str..QHUnPack.cpp
push str.c:logsqhunpack.log
call fcn.004014fc
add esp, 0x24
jmp 0x4024d9
mov eax, dword [ebp - 0x60]
imul eax, dword [ebp - 0x64]
imul eax, dword [ebp - 0x5c]
cdq
and edx, 0xfffff
add eax, edx
mov esi, eax
sar esi, 0x14
cmp esi, edi
jge 0x4024dd
cmp byte [0x4549b0], 1
jne 0x4024d9
push 0x208
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00425220
push edi
push esi
lea eax, [ebp - 0x58]
push str.DEBUG_CHECK:_IsDiskSpaceAvailable:_not_enough_diskspace__lCurrAvailable__ld___lSizeToCheck__ld_
push eax
call fcn.00426df4
lea eax, [ebp - 0x58]
push eax
push 0x6f6
push str..QHUnPack.cpp
push str.c:logsqhunpack.log
call fcn.004014fc
add esp, 0x2c
xor eax, eax
jmp 0x4024e0
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp + 0x1bc]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042529a
add ebp, 0x1c0
leave
ret