Function at 0x417800
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a3e5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5f0a00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 8], 0
jne 0x417845
or esi, ebx
jmp 0x417ac6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], 0x3a003f
mov dword [ebp - 0x14], 0x5c
mov ax, word [eax]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x417ac1
call fcn.0040d9d0
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
shrd esi, ecx, 0x14
mov eax, dword [eax + 0x320]
cdq
shr ecx, 0x14
cmp ecx, edx
jb 0x417ac1
ja 0x4178a6
cmp esi, eax
jb 0x417ac1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x5f0130]
mov dword [ebp - 0x14], ecx
mov ecx, eax
mov byte [ebp - 4], 1
not ecx
push ecx
push eax
push str.UserData_08X__08X_
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040c5f0
add esp, 0x14
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff4
mov byte [ebp - 4], 2
cmp ecx, dword [0x5f012c]
je 0x4178fa
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4178fa
push ecx
call fcn.00408c50
add esp, 4
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
lea ecx, [eax - 0xc]
mov byte [ebp - 4], 1
jl 0x417912
mov dword [ebp - 0x1c], eax
lock inc dword [ecx]
jmp 0x417927
mov ecx, dword [0x5f0130]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040c0e0
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], 0
lea ecx, [eax - 0xc]
mov byte [ebp - 4], 3
jl 0x41793c
mov dword [ebp - 0x24], eax
lock inc dword [ecx]
jmp 0x417951
mov ecx, dword [0x5f0130]
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x24]
push eax
call fcn.0040c0e0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax - 8]
mov byte [ebp - 4], 4
test ecx, ecx
jle 0x4179a6
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4179a6
cmp dword [eax - 0xc], 1
jg 0x417988
mov edx, ecx
cmp edx, dword [eax - 4]
jge 0x417988
mov esi, 0x5c
mov word [eax + edx*2], si
inc dword [eax - 8]
xor edx, edx
mov ecx, dword [eax - 8]
mov word [eax + ecx*2], dx
jmp 0x4179a6
mov esi, ecx
lea ecx, [ebp - 0x24]
lea eax, [esi + 1]
push eax
call fcn.0040c850
test al, al
mov eax, dword [ebp - 0x24]
je 0x4179a6
mov ecx, 0x5c
mov word [eax + esi*2], cx
lea ecx, [eax - 0xc]
mov byte [ebp - 4], 5
cmp ecx, dword [0x5f012c]
je 0x4179c9
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4179c9
push ecx
call fcn.00408c50
add esp, 4
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e000
mov edi, dword [ebp - 0x1c]
cmp dword [edi - 0xc], 0
lea eax, [edi - 0xc]
jl 0x4179ec
mov esi, edi
lock inc dword [eax]
jmp 0x417a00
mov eax, dword [0x5f0130]
lea ecx, [ebp - 0x24]
push edi
mov dword [ebp - 0x24], eax
call fcn.0040c0e0
mov esi, dword [ebp - 0x24]
cmp dword [esi - 8], 0
je 0x417a3f
xor eax, eax
cmp ax, word [esi]
je 0x417a3f
push esi
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
mov dword [ebp - 0x24], eax
add esi, 0xfffffff4
mov byte [ebp - 4], 7
cmp esi, dword [0x5f012c]
je 0x417a64
mov ecx, ebx
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x417a64
push esi
call fcn.00408c50
mov eax, dword [ebp - 0x24]
add esp, 4
jmp 0x417a64
add esi, 0xfffffff4
mov byte [ebp - 4], 6
cmp esi, dword [0x5f012c]
je 0x417a62
mov eax, ebx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x417a62
push esi
call fcn.00408c50
add esp, 4
xor eax, eax
xor ecx, ecx
mov byte [ebp - 4], 8
test eax, eax
setne cl
add edi, 0xfffffff4
mov dword [ebp - 0x1c], ecx
cmp edi, dword [0x5f012c]
je 0x417a94
mov eax, ebx
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x417a94
push edi
call fcn.00408c50
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov edx, dword [ebp - 0x14]
mov esi, ecx
add edx, 0xfffffff4
mov byte [ebp - 4], 9
cmp edx, dword [0x5f012c]
je 0x417ac6
mov eax, ebx
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x417ac6
push edx
call fcn.00408c50
mov esi, dword [ebp - 0x1c]
add esp, 4
jmp 0x417ac6
mov esi, 0xfffffffe
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
mov dword [ebp - 4], 0xa
cmp eax, dword [0x5f012c]
je 0x417aed
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x417aed
push eax
call fcn.00408c50
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551e44
mov esp, ebp
pop ebp
ret 4