Function at 0x459560
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ef3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x555ab0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [0x5556d8]
mov ecx, 0x5556d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, str.St_rted
mov dword [esp + 0x68], 0
test eax, 0xffff0000
jne 0x4595d1
movzx esi, ax
mov ecx, esi
call fcn.00401970
test eax, eax
je 0x4595df
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00402420
jmp 0x4595df
push str.St_rted
lea ecx, [esp + 0x18]
call fcn.004047f0
push str.Proce__AppScript
lea ecx, [esp + 0x20]
mov dword [esp + 0x6c], 1
call fcn.00402020
mov byte [esp + 0x68], 2
mov eax, dword [0x5556d8]
mov ecx, 0x5556d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 3
call fcn.00421a70
add esp, 4
mov byte [esp + 0x68], 4
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x459645
push 0
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [ebx + 8]
push eax
call fcn.00402570
mov byte [esp + 0x68], 3
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x45966a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [esp + 0x68], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x459688
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x68], 1
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4596aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x68], 0xffffffff
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4596cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5556d8]
mov ecx, 0x5556d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], 5
mov eax, dword [0x55e860]
imul eax, eax
cdq
mov ecx, 0x14
idiv ecx
cmp edx, 7
jne 0x459706
inc dword [0x55fce0]
mov eax, dword [0x5556d8]
mov ecx, 0x5556d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 8]
mov ecx, ebx
mov byte [esp + 0x74], 6
call fcn.00459bc0
lea ecx, [esp + 0x28]
call fcn.00429500
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x459753
push 0x80004005
call fcn.00401840
mov esi, dword [esp + 0x18]
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x459786
test dx, dx
je 0x459782
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x459786
add eax, 4
add ecx, 4
test dx, dx
jne 0x459760
xor eax, eax
jmp 0x45978b
sbb eax, eax
or eax, 1
mov edx, dword [esp + 0x28]
test eax, eax
sete byte [esp + 0x13]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4597af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esp + 0x13], 0
je 0x459ae3
mov eax, dword [0x5556d8]
mov ecx, 0x5556d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, str.Fai1ed_to_read_the_JS
mov byte [esp + 0x68], 7
test eax, 0xffff0000
jne 0x459800
movzx ecx, ax
call fcn.00401970
test eax, eax
je 0x45980e
mov edx, str.Fai1ed_to_read_the_JS
movzx ecx, dx
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00402420
jmp 0x45980e
push str.Fai1ed_to_read_the_JS
lea ecx, [esp + 0x18]
call fcn.004047f0
push 0x53e42c
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 8
call fcn.00402020
mov byte [esp + 0x68], 9
mov eax, dword [0x5556d8]
mov ecx, 0x5556d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x24]
lea ecx, [esp + 0x30]
mov byte [esp + 0x6c], 0xa
call fcn.00421a70
add esp, 4
mov dword [esp + 0x28], eax
mov byte [esp + 0x68], 0xb
mov ecx, dword [ebx + 4]
push eax
call fcn.004020f0
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x459881
push 2
push dword [esp + 0x2c]
lea eax, [esp + 0x2c]
push eax
lea eax, [ebx + 8]
push eax
call fcn.00402570
mov byte [esp + 0x68], 0xa
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4598a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x68], 9
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4598c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x68], 8
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4598e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x68], 6
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x459909
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00425250
test al, al
je 0x459adf
push str.Validate_the_path_and_make_sure_that_you_have_sufficient_privileges_to_access_the_file.
lea ecx, [esp + 0x18]
call fcn.00402020
push 0x53e428
lea ecx, [esp + 0x24]
mov byte [esp + 0x6c], 0xc
call fcn.00402020
push str.Failed_to_read_the_app_JS_from:
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0xd
call fcn.00402020
mov byte [esp + 0x68], 0xe
mov eax, dword [0x5556d8]
mov ecx, 0x5556d8
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x30]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6c], 0xf
call fcn.00421a70
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
mov edx, eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 0x10
call fcn.00421a70
add esp, 4
lea ecx, [esp + 0x20]
push ecx
mov edx, eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 0x11
call fcn.00421a70
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov edx, eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 0x12
call fcn.00421a70
mov byte [esp + 0x6c], 0x11
mov edx, dword [esp + 0x34]
add edx, 0xfffffff0
add esp, 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4599e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x68], 0x10
mov edx, dword [esp + 0x34]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x459a09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x68], 0xf
mov edx, dword [esp + 0x38]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x459a2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [esp + 0x68], 0xe
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x459a49
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x68], 0xd
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x459a6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x68], 0xc
mov edx, dword [esp + 0x20]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x459a8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x68], 6
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x459aaf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x10
push str.JS_Error
push dword [esp + 0x30]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x459adf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x459b5b
lea ecx, [esp + 0x3c]
call fcn.00458480
push 9
push 0x53e52c
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 0x13
call fcn.004021b0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x4c]
call fcn.004020f0
lea eax, [esp + 0x3c]
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + eax*4]
lea eax, [eax + 0x1a]
lea ecx, [ebx + eax*4]
call fcn.0045a380
mov ecx, dword [0x55e860]
mov eax, ecx
imul eax, ecx
imul eax, ecx
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 0xe
jne 0x459b50
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
lea ecx, [esp + 0x3c]
mov bl, 1
call fcn.00458350
mov byte [esp + 0x68], 5
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x459b7d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [esp + 0x68], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x459b9c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4